-
Notifications
You must be signed in to change notification settings - Fork 3
/
eslint.config.js
43 lines (41 loc) · 1.11 KB
/
eslint.config.js
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
import js from "@eslint/js";
import globals from 'globals';
export default [
js.configs.recommended,
{
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: {
...globals.browser,
...globals.commonjs,
...globals.es2015,
...globals.node,
}
}
},
{
rules: {
"indent": "warn",
"linebreak-style": "warn",
"semi": "warn",
"no-extra-semi": "warn",
"no-undef": "warn",
"no-unused-vars": "warn",
"no-empty": "warn",
"no-redeclare": "warn",
"no-prototype-builtins": "warn",
"no-global-assign": "warn",
"no-constant-binary-expression": "warn",
"no-func-assign": "warn",
"no-useless-escape": "warn",
"no-useless-catch": "warn",
"no-constant-condition": "warn",
"new-cap": "off",
"no-console": "off"
}
},
{
ignores: ["/**/dist/*", "/**/libs/*"]
}
];