-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
73 lines (73 loc) · 2.56 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
{
"env": {
"es6": true
},
"globals": {
"imports": false,
"global": false
},
"parserOptions": {
"ecmaVersion": 8
},
"extends": "eslint:recommended",
"rules": {
"indent": ["error", 2, {"SwitchCase": 1}],
"brace-style": ["error", "1tbs", {"allowSingleLine": true}],
"linebreak-style": ["error", "unix"],
"quotes": ["warn", "single"],
"semi": ["warn", "always"],
"comma-style": ["error", "last"],
"space-before-blocks": ["warn", "always"],
"space-infix-ops": ["error"],
"keyword-spacing": ["error", {"before": true, "after": true}],
"no-whitespace-before-property": ["error"],
"padded-blocks": ["warn", "never"],
"no-unused-vars": ["off"],
"no-console": ["off"],
"eqeqeq": ["error", "smart"],
"no-floating-decimal": ["error"],
"no-new-wrappers": ["error"],
"no-with": ["error"],
"wrap-iife": ["error", "inside"],
"camelcase": ["warn"],
"comma-spacing": ["warn", {"before": false, "after": true}],
"eol-last": ["warn"],
"no-multiple-empty-lines": ["warn"],
"no-trailing-spaces": ["error", {"skipBlankLines": true}],
"spaced-comment": ["warn", "always"],
"no-confusing-arrow": ["warn", {"allowParens": true}],
"no-lone-blocks": ["warn"],
"prefer-const": ["warn", {"destructuring": "all"}],
"no-const-assign": ["error"],
"no-new-object": ["warn"],
"no-array-constructor": ["warn"],
"object-shorthand": ["warn"],
"quote-props": ["error", "as-needed", {"keywords": true, "numbers": true}],
"array-callback-return": ["warn"],
"prefer-template": ["warn"],
"template-curly-spacing": ["warn", "never"],
"no-useless-escape": ["warn"],
"prefer-rest-params": ["error"],
"prefer-spread": ["warn"],
"prefer-arrow-callback": ["warn", {"allowNamedFunctions": true}],
"arrow-spacing": ["warn", {"before": true, "after": true}],
"arrow-parens": ["warn", "as-needed"],
"arrow-body-style": ["warn", "as-needed"],
"no-dupe-class-members": ["error"],
"no-duplicate-imports": ["error"],
"no-iterator": ["error"],
"dot-notation": ["warn"],
"one-var": ["error", "never"],
"no-case-declarations": ["error"],
"no-nested-ternary": ["warn"],
"no-unneeded-ternary": ["warn"],
"newline-per-chained-call": ["warn", {"ignoreChainWithDepth": 3}],
"space-in-parens": ["warn", "never"],
"array-bracket-spacing": ["warn", "never"],
"object-curly-spacing": ["warn", "never"],
"comma-dangle": ["warn", "only-multiline"],
"radix": ["warn"],
"no-underscore-dangle": ["warn"],
"no-var": "error"
}
}