Skip to content

Commit f10fa10

Browse files
committed
Migrate to eslint 10
1 parent 39704ae commit f10fa10

File tree

4 files changed

+254
-514
lines changed

4 files changed

+254
-514
lines changed

.eslintrc.json

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

eslint.config.js

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import js from "@eslint/js";
2+
3+
export default [
4+
js.configs.recommended,
5+
{
6+
languageOptions: {
7+
ecmaVersion: "latest",
8+
sourceType: "module",
9+
globals: {
10+
// Node.js globals
11+
console: "readonly",
12+
process: "readonly",
13+
Buffer: "readonly",
14+
__dirname: "readonly",
15+
__filename: "readonly",
16+
URL: "readonly",
17+
URLSearchParams: "readonly",
18+
AbortController: "readonly",
19+
AbortSignal: "readonly",
20+
setTimeout: "readonly",
21+
setInterval: "readonly",
22+
clearTimeout: "readonly",
23+
clearInterval: "readonly",
24+
setImmediate: "readonly",
25+
clearImmediate: "readonly",
26+
FormData: "readonly",
27+
},
28+
},
29+
rules: {
30+
"indent": ["error", 2],
31+
"linebreak-style": ["error", "unix"],
32+
"quotes": ["error", "double"],
33+
"semi": ["error", "always"],
34+
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
35+
},
36+
},
37+
];

0 commit comments

Comments
 (0)