Skip to content

Commit 47545ca

Browse files
committed
chore(eslint): migrate to Eslint v9 file structure
1 parent 22ffb67 commit 47545ca

File tree

4 files changed

+32
-38
lines changed

4 files changed

+32
-38
lines changed

.eslintrc.json

Lines changed: 0 additions & 30 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import { defineConfig, globalIgnores } from "eslint/config";
2+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
3+
import tsParser from "@typescript-eslint/parser";
4+
5+
export default defineConfig([globalIgnores(["**/out", "**/dist", "**/*.d.ts"]), {
6+
plugins: {
7+
"@typescript-eslint": typescriptEslint,
8+
},
9+
10+
languageOptions: {
11+
parser: tsParser,
12+
ecmaVersion: 6,
13+
sourceType: "module",
14+
},
15+
16+
rules: {
17+
"@typescript-eslint/naming-convention": ["warn", {
18+
selector: "import",
19+
format: ["camelCase", "PascalCase"],
20+
}],
21+
22+
"@/semi": "warn",
23+
curly: "warn",
24+
eqeqeq: "warn",
25+
"no-throw-literal": "warn",
26+
semi: "off",
27+
},
28+
}]);

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,8 @@
107107
"devDependencies": {
108108
"@types/node": "24.6.0",
109109
"@types/vscode": "^1.85.0",
110-
"@typescript-eslint/type-utils": "^8.46.3",
111-
"@typescript-eslint/eslint-plugin": "^8.46.3",
112-
"@typescript-eslint/parser": "^8.46.3",
110+
"@typescript-eslint/eslint-plugin": "^8.43.0",
111+
"@typescript-eslint/parser": "^8.45.0",
113112
"eslint": "^9.39.1",
114113
"tsup": "^8.5.0",
115114
"typescript": "^5.9.2"

pnpm-lock.yaml

Lines changed: 2 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)