-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy path.eslintrc.json
193 lines (188 loc) · 5.81 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
{
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module"
},
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"rules": {
"for-direction": ["warn"],
"getter-return": ["error"],
"no-cond-assign": ["warn", "always"],
"no-control-regex": ["off"],
"no-template-curly-in-string": ["warn"],
"no-unsafe-negation": ["error"],
"valid-jsdoc": ["warn", {
"requireParamDescription": false,
"requireReturnDescription": false }],
"array-callback-return": ["error"],
"consistent-return": ["error"],
"curly": ["error"],
"default-case": ["error"],
"dot-location": ["error", "property"],
"eqeqeq": ["error"],
"no-alert": ["error"],
"no-caller": ["error"],
"no-eval": ["error"],
"no-extend-native": ["error"],
"no-extra-bind": ["error"],
"no-extra-label": ["error"],
"no-floating-decimal": ["error"],
"no-implicit-coercion": ["error", {
"allow": ["!!"] }],
"no-implicit-globals": ["error"],
"no-implied-eval": ["error"],
"no-invalid-this": ["warn"],
"no-iterator": ["error"],
"no-lone-blocks": ["error"],
"no-loop-func": ["error"],
"no-multi-str": ["error"],
"no-new": ["error"],
"no-param-reassign": ["error"],
"no-proto": ["error"],
"no-return-assign": ["error"],
"no-return-await": ["error"],
"no-self-compare": ["error"],
"no-sequences": ["error"],
"no-throw-literal": ["warn"],
"no-unmodified-loop-condition": ["error"],
"no-unused-expressions": ["error"],
"no-useless-call": ["error"],
"no-useless-concat": ["error"],
"no-useless-return": ["error"],
"no-void": ["error"],
"no-warning-comments": ["warn"],
"no-with": ["error"],
"require-await": ["warn"],
"wrap-iife": ["error"],
"strict": ["error"],
"no-label-var": ["error"],
"no-shadow-restricted-names": ["error"],
"no-unused-vars": ["error", {
"args": "none" }],
"no-use-before-define": ["error", {
"functions": false,
"classes": false }],
"array-bracket-spacing": ["error", "never"],
"block-spacing": ["error", "always"],
"brace-style": ["error", "stroustrup", {
"allowSingleLine": true }],
"camelcase": ["error", {
"properties": "never" }],
"comma-dangle": ["error", "only-multiline"],
"comma-spacing": ["error", {
"before": false,
"after": true }],
"comma-style": ["error", "last"],
"computed-property-spacing": ["error", "never"],
"eol-last": ["error"],
"func-call-spacing": ["error", "never"],
"func-name-matching": ["error"],
"func-style": ["error", "declaration", {
"allowArrowFunctions": true }],
"indent": ["error", 2, {
"VariableDeclarator": {
"var": 2,
"let": 2,
"const": 3 },
"ignoredNodes": ["ConditionalExpression"] }],
"jsx-quotes": ["error", "prefer-double"],
"key-spacing": ["error", {
"beforeColon": false,
"afterColon": true,
"align": "colon" }],
"keyword-spacing": ["error", {
"before": true,
"after": true }],
"linebreak-style": ["error", "unix"],
"lines-between-class-members": ["error", "always", {
"exceptAfterSingleLine": true }],
"max-len": ["error", {
"code": 100,
"ignoreComments": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true }],
"new-cap": ["error"],
"new-parens": ["error"],
"no-array-constructor": ["error"],
"no-multi-assign": ["error"],
"no-multiple-empty-lines": ["error", {
"max": 2,
"maxBOF": 0,
"maxEOF": 0 }],
"no-new-object": ["error"],
"no-plusplus": ["error", {
"allowForLoopAfterthoughts": true }],
"no-tabs": ["error"],
"no-trailing-spaces": ["error"],
"no-unneeded-ternary": ["error"],
"no-whitespace-before-property": ["error"],
"object-curly-spacing": ["error", "always"],
"operator-linebreak": ["error", "before", {
"overrides": {
"=": "after",
"+=": "after",
"-=": "after",
"*=": "after",
"/=": "after",
"%=": "after",
"**=": "after",
"<<=": "after",
">>=": "after",
">>>=": "after",
"&=": "after",
"^=": "after",
"|=": "after" } }],
"padded-blocks": ["error", "never"],
"quote-props": ["error", "consistent-as-needed"],
"quotes": ["error", "double"],
"semi": ["error", "always"],
"semi-spacing": ["error", {
"before": false,
"after": true }],
"semi-style": ["error", "last"],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never" }],
"space-in-parens": ["error", "never"],
"space-infix-ops": ["error"],
"space-unary-ops": ["error", {
"words": true,
"nonwords": false }],
"spaced-comment": ["error", "always"],
"switch-colon-spacing": ["error", {
"before": false,
"after": true }],
"template-tag-spacing": ["error", "never"],
"unicode-bom": ["error", "never"],
"arrow-body-style": ["error", "as-needed"],
"arrow-parens": ["error", "as-needed"],
"arrow-spacing": ["error", {
"before": true,
"after": true }],
"generator-star-spacing": ["error", {
"before": false,
"after": true,
"method": {
"before": true,
"after": false } }],
"no-duplicate-imports": ["error"],
"no-useless-computed-key": ["error"],
"no-var": ["error"],
"prefer-arrow-callback": ["error"],
"prefer-const": ["error"],
"prefer-numeric-literals": ["error"],
"prefer-rest-params": ["error"],
"prefer-spread": ["error"],
"require-yield": ["warn"],
"rest-spread-spacing": ["error", "never"],
"yield-star-spacing": ["error", {
"before": false,
"after": true }]
}
}