-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy patheslint.config.js
More file actions
64 lines (63 loc) · 1.31 KB
/
eslint.config.js
File metadata and controls
64 lines (63 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import js from "@eslint/js";
import globals from "globals";
export default [
{
ignores: [
"dist/**",
"dist-kernel/**",
"node_modules/**",
"public/**",
"__BREP_DATA__/**",
"src/generated/**"
]
},
js.configs.recommended,
{
files: ["**/*.js"],
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
globals: {
...globals.browser,
...globals.es2024
}
},
linterOptions: {
reportUnusedDisableDirectives: "warn"
},
rules: {
"no-empty": ["warn", { allowEmptyCatch: true }],
"no-constant-binary-expression": "warn",
"no-undef": "warn",
"no-unused-private-class-members": "warn",
"no-useless-catch": "warn",
"no-unsafe-finally": "warn",
"no-useless-escape": "warn",
"no-unused-vars": [
"warn",
{
argsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
varsIgnorePattern: "^_"
}
]
}
},
{
files: [
"scripts/**/*.js",
"bin/**/*.js",
"tests/**/*.js",
"src/tests/**/*.js",
"generateLicenses.js",
"vite.config.js",
"vite.config.kernel.js"
],
languageOptions: {
globals: {
...globals.node,
...globals.es2024
}
}
}
];