-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
44 lines (44 loc) · 1.12 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
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"globals": {
"window": true,
"ActiveXObject": true
},
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:unicorn/recommended"
],
"plugins": [
"import",
"unicorn"
],
"rules": {
"quotes": ["error", "double", {
"avoidEscape": true
}],
"semi": ["error", "always", {
"omitLastInOneLineBlock": true
}],
"indent": ["error", 4, {
"SwitchCase": 1
}],
"no-empty": ["error", {
"allowEmptyCatch": true
}],
"unicorn/no-fn-reference-in-iterator": "warn",
"unicorn/no-abusive-eslint-disable": "warn",
"unicorn/prefer-ternary": "off",
"unicorn/no-useless-undefined": "warn",
"unicorn/prevent-abbreviations": "off",
"unicorn/catch-error-name": "off",
"unicorn/explicit-length-check": "off",
"unicorn/no-null": "warn",
"unicorn/prefer-module": "off"
}
}