Skip to content

Commit ddba1e4

Browse files
brettz9marijnh
authored andcommitted
Update to ESLint 9
1 parent ca53db2 commit ddba1e4

File tree

5 files changed

+2114
-583
lines changed

5 files changed

+2114
-583
lines changed

.eslintignore

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

.eslintrc.js

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

eslint.config.js

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
import js from "@eslint/js"
2+
import neostandard from "neostandard"
3+
import importPlugin from "eslint-plugin-import"
4+
5+
export default [
6+
{
7+
ignores: [
8+
"**/dist/**",
9+
"**/test/**",
10+
"**/local/**"
11+
]
12+
},
13+
js.configs.recommended,
14+
...neostandard(),
15+
importPlugin.flatConfigs.recommended,
16+
{
17+
languageOptions: {
18+
globals: {
19+
BigInt: false,
20+
Packages: false
21+
}
22+
}
23+
},
24+
{
25+
rules: {
26+
"@stylistic/indent": [
27+
"error",
28+
2,
29+
{
30+
SwitchCase: 0,
31+
VariableDeclarator: 2,
32+
CallExpression: {arguments: "off"}
33+
}
34+
],
35+
"@stylistic/new-parens": "off",
36+
"@stylistic/no-mixed-operators": "off",
37+
"@stylistic/object-curly-spacing": ["error", "never"],
38+
"@stylistic/quotes": ["error", "double"],
39+
"@stylistic/semi-spacing": "off",
40+
"@stylistic/space-before-function-paren": ["error", "never"],
41+
"no-unreachable-loop": "off",
42+
"no-empty": "off",
43+
curly: "off",
44+
eqeqeq: ["error", "always", {null: "ignore"}],
45+
"new-parens": "off",
46+
"no-case-declarations": "off",
47+
"no-cond-assign": "off",
48+
"no-console": ["error", {allow: ["warn", "error"]}],
49+
"no-fallthrough": "off",
50+
"no-labels": "off",
51+
"no-return-assign": "off",
52+
"no-unused-labels": "error",
53+
"no-var": "error",
54+
"object-shorthand": "off",
55+
"one-var": "off",
56+
"prefer-const": "off"
57+
}
58+
},
59+
{
60+
files: [
61+
"acorn/src/bin/*.js",
62+
"bin/generate-identifier-regex.js",
63+
"bin/generate-unicode-script-values.js"
64+
],
65+
languageOptions: {
66+
ecmaVersion: 2022
67+
},
68+
rules: {
69+
"no-console": "off"
70+
}
71+
}
72+
]

0 commit comments

Comments
 (0)