-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
55 lines (55 loc) · 1.85 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
54
55
{
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"BigInt": "readonly",
"Buffer": "readonly",
"process": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"no-var": ["error"],
"no-eval": ["error"],
"no-new-func": ["error"],
"no-new-object": ["error"],
"no-array-constructor": ["error"],
"no-loop-func": ["error"],
"no-plusplus": ["error"],
"no-multi-assign": ["error"],
"prefer-rest-params": ["warn"],
"prefer-spread": ["error"],
"no-param-reassign": ["error"],
"no-duplicate-imports": ["error"],
"no-multiple-empty-lines": ["error"],
"no-unexpected-multiline": ["off"],
"no-trailing-spaces": ["error"],
"spaced-comment": ["error"],
"space-before-blocks": ["error"],
"space-infix-ops": "error",
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "double"],
"semi": ["error", "always"],
"one-var": ["error", "never"],
"eqeqeq": ["error"],
"no-new-wrappers": ["error"],
"no-unneeded-ternary": ["error", { "defaultAssignment": false }],
"padded-blocks": ["error", "never"],
"space-in-parens": ["error", "never"],
"array-bracket-spacing": ["error", "never"],
"object-curly-spacing": ["error", "always"],
"block-spacing": ["error"],
"comma-spacing": ["error", { "before": false, "after": true }],
"computed-property-spacing": ["error", "never"],
"key-spacing": ["error", { "beforeColon": false, "mode": "minimum" }],
"comma-style": ["error", "last"]
}
}