-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
53 lines (53 loc) · 1.18 KB
/
.eslintrc.json
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
{
"extends": "eslint:recommended",
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "script"
},
"rules": {
"array-bracket-spacing": [ "error", "always" ],
"arrow-body-style": [ "error", "as-needed" ],
"arrow-parens": [ "error", "always" ],
"arrow-spacing": [ "error", {
"before": true,
"after": true
} ],
"block-spacing": "error",
"comma-dangle": [ "error", "never" ],
"constructor-super": "error",
"indent": [ "error", "tab", {
"SwitchCase": 1
} ],
"no-confusing-arrow": [ "error", {
"allowParens": true
} ],
"no-const-assign": "error",
"no-extra-semi": [ "error" ],
"no-multiple-empty-lines": [ "error", {
"max": 1,
"maxEOF": 1
} ],
"no-this-before-super": "error",
"no-undef": "error",
"no-unreachable": "warn",
"no-unused-vars": "warn",
"no-use-before-define": [ "error", {
"functions": false
} ],
"no-useless-escape": "error",
"prefer-const": "error",
"quotes": [ "error", "single" ],
"semi": "error",
"space-in-parens": [ "error", "always" ],
"space-infix-ops": [ "error", {
"int32Hint": false
} ],
"valid-typeof": "error"
}
}