-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
107 lines (107 loc) · 3.92 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"env": {
"browser": true,
"es6": true,
"node": true,
"shared-node-browser": true
},
"parserOptions": {
"ecmaVersion": 2019
},
"extends": "eslint:recommended",
"rules": {
"array-bracket-newline": ["error", "consistent"],
"array-bracket-spacing": "error",
"array-callback-return": "error",
"array-element-newline": ["error", { "multiline": true }],
"arrow-body-style": ["error", "never"],
"arrow-parens": ["error", "as-needed"],
"arrow-spacing": "error",
"block-scoped-var": "error",
"block-spacing": "error",
"brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
"camelcase": "error",
"comma-dangle": ["error", "always-multiline"],
"comma-spacing": "error",
"comma-style": "error",
"computed-property-spacing": "error",
"consistent-return": "error",
"curly": ["error", "multi-or-nest", "consistent"],
"default-case": "error",
"dot-location": ["error", "property"],
"dot-notation": ["error", { "allowKeywords": false }],
"eol-last": "error",
"eqeqeq": "error",
"func-call-spacing": "error",
"func-names": ["error", "never"],
"function-paren-newline": ["error", "consistent"],
"implicit-arrow-linebreak": "error",
"indent": ["error", 2],
"init-declarations": "error",
"key-spacing": "error",
"keyword-spacing": ["error", { "before": false, "after": false,
"overrides": { "const": { "after": true }, "try": { "after": true }, "return": { "after": true } }
}],
"linebreak-style": "error",
"lines-around-comment": ["error", { "beforeBlockComment": true, "beforeLineComment": true, "allowBlockStart": true }],
"multiline-ternary": ["error", "never"],
"no-array-constructor": "error",
"no-bitwise": "error",
"no-confusing-arrow": "error",
"no-console": "off",
"no-empty": ["error", { "allowEmptyCatch": true }],
"no-eval": "error",
"no-floating-decimal": "error",
"no-implicit-coercion": ["error", { "allow": ["!!"] }],
"no-implied-eval": "error",
"no-invalid-this": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-lonely-if": "error",
"no-mixed-operators": "error",
"no-multi-assign": "error",
"no-multiple-empty-lines": ["error", {"max": 2, "maxBOF": 0}],
"no-negated-condition": "error",
"no-new-object": "error",
"no-octal-escape": "error",
"no-path-concat": "error",
"no-return-assign": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-shadow-restricted-names": "error",
"no-tabs": "error",
"no-template-curly-in-string": "error",
"no-trailing-spaces": ["error", { "skipBlankLines": true, "ignoreComments": true }],
"no-undef-init": "error",
"no-unneeded-ternary": "error",
"no-unused-expressions": "error",
"no-unused-vars": "error",
"no-use-before-define": ["error", { "functions": false, "classes": false }],
"no-useless-escape": "off",
"no-useless-return": "error",
"no-var": "error",
"no-void": "error",
"no-whitespace-before-property": "error",
"no-with": "error",
"nonblock-statement-body-position": ["error", "below"],
"object-curly-newline": ["error", { "consistent": true }],
"object-curly-spacing": ["error", "never"],
"object-property-newline": ["error", { "allowAllPropertiesOnSameLine": true }],
"operator-assignment": "error",
"operator-linebreak": ["error", "before"],
"padded-blocks": ["error", "never"],
"quote-props": ["error", "consistent"],
"quotes": ["error", "single", { "avoidEscape": true }],
"semi-spacing": "error",
"semi-style": "error",
"semi": "error",
"space-before-blocks": "error",
"space-before-function-paren": ["error", "never"],
"space-in-parens": "error",
"space-unary-ops": "error",
"strict": ["error", "global"],
"switch-colon-spacing": "error",
"template-curly-spacing": "error",
"wrap-iife": ["error", "inside"]
}
}