-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.json
81 lines (75 loc) · 2.79 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
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
{
"parserOptions": { "ecmaVersion": 8 },
"env": { "es6": true },
"rules": {
"eqeqeq": "error",
"no-use-before-define": ["error", {
"functions": false,
"variables": false
}],
"no-caller": "error",
"no-undef": "error",
"no-unused-vars": "warn",
"no-constant-condition": ["error", { "checkLoops": false }],
"no-const-assign": "error",
"no-case-declarations": "error",
"no-redeclare": "error",
"no-cond-assign": "error",
"no-dupe-args": "error",
"no-dupe-keys": "error",
"no-dupe-class-members": "error",
"no-func-assign": "error",
"no-inner-declarations": "error",
"no-obj-calls": "error",
"no-unreachable": "error",
"valid-typeof": "error",
"constructor-super": "error",
"no-class-assign": "error",
"no-new-symbol": "error",
"no-this-before-super": "error",
"prefer-spread": "warn",
"curly": ["warn", "multi"],
"camelcase": ["warn"],
"wrap-iife": ["warn", "inside"],
"quotes": ["warn", "single"],
"semi": ["warn", "always"],
"indent": ["warn", 4, { "SwitchCase": 1 }],
"linebreak-style": ["warn", "unix"],
"space-before-function-paren": ["warn", {
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}],
"space-before-blocks": ["warn", "always"],
"space-in-parens": ["warn", "never"],
"key-spacing": ["warn", {
"beforeColon": false,
"afterColon": true,
"mode": "minimum"
}],
"comma-spacing": ["warn", { "before": false, "after": true }],
"semi-spacing": ["warn", { "before": false, "after": true }],
"arrow-spacing": ["warn", { "before": true, "after": true }],
"generator-star-spacing": ["warn", { "before": false, "after": true }],
"func-call-spacing": ["warn", "never"],
"keyword-spacing": "warn",
"space-infix-ops": "warn",
"no-multi-spaces": "warn",
"no-whitespace-before-property": "warn",
"comma-style": ["warn", "last"],
"brace-style": ["warn", "stroustrup", { "allowSingleLine": true }],
"comma-dangle": ["warn", {
"arrays": "ignore",
"objects": "never",
"imports": "never",
"exports": "never",
"functions": "never"
}],
"array-bracket-spacing": ["warn", "never"],
"object-curly-spacing": ["warn", "always"],
"no-extra-semi": "warn",
"no-delete-var": "warn",
"computed-property-spacing": ["warn", "never"],
"no-tabs": "warn"
}
}