-
Notifications
You must be signed in to change notification settings - Fork 654
/
eslint.config.js
40 lines (38 loc) · 1.05 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
import * as regexpPlugin from "eslint-plugin-regexp"
export default [
regexpPlugin.configs["flat/recommended"],
{
// "ignorePatterns": ["**/builds/*"],
"ignores": ["**/builds/*"],
"rules": {
"comma-dangle": [1, "only-multiline"],
"quotes": [0, "single", "avoid-escape"],
"max-nested-callbacks": [1, 4],
"max-params": [1, 5],
"consistent-return": 1,
"no-bitwise": 1,
"no-empty": 1,
"no-console": 1,
"no-duplicate-imports": 1,
"no-eval": 2,
"no-implied-eval": 2,
"no-mixed-operators": 2,
"no-multi-assign": 2,
"no-nested-ternary": 1,
"no-prototype-builtins": 0,
"no-self-compare": 1,
"no-sequences": 1,
"no-shadow": 2,
"no-unmodified-loop-condition": 1,
"no-use-before-define": 1,
"prefer-const": 0,
"radix": 1,
"no-unused-vars": 1,
"regexp/prefer-d": 0,
"regexp/prefer-w": 0,
"regexp/prefer-range": 0,
"regexp/no-unused-capturing-group": 0,
"eslint-comments/no-unused-disable": 0
}
},
]