Skip to content

Commit a86fdcf

Browse files
authored
Migrate ESLint to v10 flat config, add diff override
1 parent f2c40e2 commit a86fdcf

4 files changed

Lines changed: 345 additions & 525 deletions

File tree

.eslintrc.js

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

eslint.config.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
const js = require("@eslint/js");
2+
const globals = require("globals");
3+
4+
module.exports = [
5+
js.configs.recommended,
6+
{
7+
languageOptions: {
8+
ecmaVersion: 2017,
9+
globals: {
10+
...globals.node,
11+
...globals.es2017
12+
}
13+
},
14+
rules: {
15+
"indent": ["error", 4],
16+
"linebreak-style": ["error", "unix"],
17+
"semi": ["error", "always"],
18+
"no-cond-assign": ["error", "always"]
19+
}
20+
}
21+
];

0 commit comments

Comments
 (0)