Skip to content

Commit 6813c9b

Browse files
committed
eslint@9
1 parent 08dbe81 commit 6813c9b

File tree

5 files changed

+592
-187
lines changed

5 files changed

+592
-187
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc

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

eslint.config.mjs

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
2+
import globals from "globals";
3+
import tsParser from "@typescript-eslint/parser";
4+
5+
export default [{
6+
ignores: ["**/dist"],
7+
}, {
8+
plugins: {
9+
"@typescript-eslint": typescriptEslint,
10+
},
11+
12+
languageOptions: {
13+
globals: {
14+
...globals.browser,
15+
...globals.node,
16+
Atomics: "readonly",
17+
SharedArrayBuffer: "readonly",
18+
},
19+
20+
parser: tsParser,
21+
},
22+
files: ["src/**/*.ts"],
23+
rules: {
24+
"no-unused-vars": ["warn", {
25+
argsIgnorePattern: "^_",
26+
varsIgnorePattern: "^_",
27+
}],
28+
29+
"@typescript-eslint/no-unused-vars": ["warn", {
30+
argsIgnorePattern: "^_",
31+
varsIgnorePattern: "^_",
32+
}],
33+
},
34+
}];

0 commit comments

Comments
 (0)