Skip to content

Commit

Permalink
chore(deps): upgrade to ESLint v9 (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 authored May 29, 2024
1 parent 562f49b commit 520209a
Show file tree
Hide file tree
Showing 7 changed files with 584 additions and 535 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

14 changes: 0 additions & 14 deletions .eslintrc.json

This file was deleted.

4 changes: 4 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
compressionLevel: mixed

enableGlobalCache: false

nodeLinker: node-modules
21 changes: 21 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import js from "@eslint/js";
import tsPlugin from "typescript-eslint";

export default [
js.configs.recommended,
...tsPlugin.configs.recommended,
{
files: ["**/*.ts"],
languageOptions: {
parser: tsPlugin.parser,
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
},
plugins: {
"@typescript-eslint": tsPlugin.plugin,
},
},
{ ignores: ["node_modules/", "**/dist/"] },
];
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "caritat",
"private": true,
"packageManager": "yarn@4.0.0-rc.45+sha224.54f0a052d2349fb4ea87e32dfc16e12c5a6fae38c6bf3aa249501c80",
"packageManager": "yarn@4.2.2+sha224.1e50daf19e5e249a025569752c60b88005fddf57d10fcde5fc68b88f",
"version": "1.3.1",
"license": "MIT",
"repository": {
Expand All @@ -12,10 +12,9 @@
"@types/eslint": "^8",
"@types/js-yaml": "^4.0.5",
"@types/node": "^20.0.0",
"@typescript-eslint/eslint-plugin": "^5.59.11",
"@typescript-eslint/parser": "^5.59.11",
"eslint": "^8.42.0",
"typescript": "^5.1.3"
"eslint": "^9.2.0",
"typescript": "^5.1.3",
"typescript-eslint": "^7.8.0"
},
"imports": {
"#ts-loader": "./packages/ts-loader/loader.js"
Expand Down
2 changes: 1 addition & 1 deletion packages/ts-loader/loader.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { readFile, opendir } from "node:fs/promises";
import { fileURLToPath } from "node:url";
import { URL, fileURLToPath } from "node:url";

import { transform } from "sucrase";

Expand Down
Loading

0 comments on commit 520209a

Please sign in to comment.