-
Notifications
You must be signed in to change notification settings - Fork 129
/
.eslintrc
87 lines (87 loc) · 1.61 KB
/
.eslintrc
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"root": true,
"env": {
"es6": true,
"browser": true,
"node": true
},
"globals": {
"URL": "writable"
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {}
},
"extends": [
"plugin:compat/recommended",
"plugin:regexp/recommended"
],
"rules": {
"semi": [
"warn",
"never"
],
"indent": [
"error",
2
],
"spaced-comment": [
0,
"never"
],
"no-cond-assign": 2,
"no-var": 1,
"prefer-const": 0,
"no-extra-parens": 0,
"no-dupe-keys": 2,
"no-undef": 2,
"no-unreachable": 2,
"eqeqeq": 1,
"keyword-spacing": 0,
"no-native-reassign": 2,
"no-redeclare": 2,
"radix": 1,
"quotes": [
0,
"single",
"avoid-escape"
],
"no-shadow": 2,
"no-unused-vars": 1,
"no-lonely-if": 1,
"no-use-before-define": 2,
"no-bitwise": 2,
"no-dupe-class-members": 2,
"guard-for-in": 1,
"consistent-return": 2,
"no-octal-escape": 2,
"no-constant-condition": 1,
"no-unused-expressions": 2,
"comma-dangle": [
1,
"only-multiline"
],
"space-before-function-paren": [
"error",
{
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}
],
"max-len": [
"error",
{
"code": 120,
"ignoreComments": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}
],
"regexp/prefer-d": 0,
"regexp/prefer-w": 0,
"regexp/no-unused-capturing-group": 0
}
}