@@ -24,7 +24,7 @@ module.exports = {
24
24
"warn" ,
25
25
"always"
26
26
] ,
27
- "brace-style" : [
27
+ "brace-style" : [
28
28
"error" ,
29
29
"1tbs"
30
30
] ,
@@ -33,7 +33,6 @@ module.exports = {
33
33
"warn" ,
34
34
{ "properties" : "always" }
35
35
] ,
36
- "capitalized-comments" : "off" ,
37
36
"class-methods-use-this" : "error" ,
38
37
"comma-dangle" : [
39
38
"error" ,
@@ -53,7 +52,10 @@ module.exports = {
53
52
"outerThis" ,
54
53
"self"
55
54
] ,
56
- "curly" : "error" ,
55
+ "curly" : [
56
+ "error" ,
57
+ "all"
58
+ ] ,
57
59
"default-case" : "error" ,
58
60
"dot-location" : [
59
61
"error" ,
@@ -64,24 +66,14 @@ module.exports = {
64
66
"eqeqeq" : "error" ,
65
67
"func-call-spacing" : "error" ,
66
68
"func-name-matching" : "error" ,
67
- "func-names" : "off" ,
68
- "func-style" : "off" ,
69
- "generator-star-spacing" : "error" ,
70
- "global-require" : "error" ,
71
- "guard-for-in" : "warn" ,
72
- "handle-callback-err" : "error" ,
73
- "id-blacklist" : "error" ,
74
69
"id-length" : [
75
70
"warn" ,
76
71
{ "exceptions" : [ "$" , "e" , "i" , "j" ] }
77
72
] ,
78
- "id-match" : "error" ,
79
73
"indent" : [
80
74
"error" ,
81
75
"tab"
82
76
] ,
83
- "init-declarations" : "off" ,
84
- "jsx-quotes" : "error" ,
85
77
"key-spacing" : [
86
78
"warn" , {
87
79
"singleLine" : {
@@ -96,16 +88,11 @@ module.exports = {
96
88
}
97
89
] ,
98
90
"keyword-spacing" : "error" ,
99
- "line-comment-position" : "off" ,
100
91
"linebreak-style" : [
101
92
"warn" ,
102
93
"unix"
103
94
] ,
104
- "lines-around-comment" : "off" ,
105
- "lines-around-directive" : "off" ,
106
95
"max-depth" : "warn" ,
107
- "max-len" : "off" ,
108
- "max-lines" : "off" ,
109
96
"max-nested-callbacks" : "error" ,
110
97
"max-params" : [
111
98
"warn" ,
@@ -124,8 +111,6 @@ module.exports = {
124
111
"never"
125
112
] ,
126
113
"new-parens" : "error" ,
127
- "newline-after-var" : "warn" ,
128
- "newline-before-return" : "error" ,
129
114
"newline-per-chained-call" : [
130
115
"warn" ,
131
116
{ "ignoreChainWithDepth" : 3 }
@@ -135,13 +120,15 @@ module.exports = {
135
120
"no-await-in-loop" : "error" ,
136
121
"no-bitwise" : "error" ,
137
122
"no-caller" : "error" ,
138
- "no-catch-shadow" : "warn" ,
139
123
"no-compare-neg-zero" : "error" ,
140
124
"no-confusing-arrow" : "error" ,
141
125
"no-continue" : "warn" ,
142
126
"no-div-regex" : "error" ,
143
127
"no-duplicate-imports" : "error" ,
144
- "no-else-return" : "error" ,
128
+ "no-else-return" : [
129
+ "error" ,
130
+ { "allowElseIf" : false }
131
+ ] ,
145
132
"no-empty" : [
146
133
"error" ,
147
134
{ "allowEmptyCatch" : true }
@@ -170,12 +157,11 @@ module.exports = {
170
157
"no-global-assign" : "error" ,
171
158
"no-implicit-globals" : "error" ,
172
159
"no-implied-eval" : "error" ,
173
- "no-inline-comments" : "off" ,
174
160
"no-inner-declarations" : [
175
161
"warn" ,
176
162
"both"
177
163
] ,
178
- "no-invalid-this" : "off " ,
164
+ "no-invalid-this" : "warn " ,
179
165
"no-iterator" : "error" ,
180
166
"no-label-var" : "error" ,
181
167
"no-labels" : "error" ,
@@ -210,9 +196,7 @@ module.exports = {
210
196
"no-new-require" : "error" ,
211
197
"no-new-wrappers" : "error" ,
212
198
"no-octal-escape" : "error" ,
213
- "no-param-reassign" : "off" ,
214
199
"no-path-concat" : "error" ,
215
- "no-plusplus" : "off" ,
216
200
"no-process-env" : "error" ,
217
201
"no-process-exit" : "error" ,
218
202
"no-proto" : "error" ,
@@ -229,9 +213,7 @@ module.exports = {
229
213
"no-sequences" : "error" ,
230
214
"no-shadow" : "warn" ,
231
215
"no-shadow-restricted-names" : "error" ,
232
- "no-spaced-func" : "error" ,
233
216
"no-sync" : "warn" ,
234
- "no-tabs" : "off" ,
235
217
"no-template-curly-in-string" : "error" ,
236
218
"no-ternary" : "warn" ,
237
219
"no-throw-literal" : "warn" ,
@@ -263,7 +245,7 @@ module.exports = {
263
245
"no-useless-escape" : "error" ,
264
246
"no-useless-rename" : "error" ,
265
247
"no-useless-return" : "error" ,
266
- "no-var" : "off " ,
248
+ "no-var" : "warn " ,
267
249
"no-void" : "error" ,
268
250
"no-warning-comments" : "warn" ,
269
251
"no-whitespace-before-property" : "error" ,
@@ -288,22 +270,21 @@ module.exports = {
288
270
"warn" ,
289
271
"consistent"
290
272
] ,
291
- "one-var" : "off" ,
292
- "one-var-declaration-per-line" : "off" ,
293
273
"operator-assignment" : [
294
274
"error" ,
295
275
"always"
296
276
] ,
297
277
"operator-linebreak" : "error" ,
298
- "padded-blocks" : "off" ,
299
- "prefer-arrow-callback" : "off" ,
278
+ "padding-line-between-statements" : [
279
+ "warn" ,
280
+ { "blankLine" : "always" , "prev" : [ "const" , "let" , "var" ] , "next" : "*" } ,
281
+ { "blankLine" : "any" , "prev" : [ "const" , "let" , "var" ] , "next" : [ "const" , "let" , "var" ] } ,
282
+ { "blankLine" : "always" , "prev" : "directive" , "next" : "*" } ,
283
+ { "blankLine" : "any" , "prev" : "directive" , "next" : "directive" } ,
284
+ { "blankLine" : "always" , "prev" : "*" , "next" : "return" }
285
+ ] ,
300
286
"prefer-const" : "error" ,
301
- "prefer-destructuring" : "off" ,
302
- "prefer-numeric-literals" : "off" ,
303
287
"prefer-promise-reject-errors" : "error" ,
304
- "prefer-rest-params" : "off" ,
305
- "prefer-spread" : "off" ,
306
- "prefer-template" : "off" ,
307
288
"quote-props" : [
308
289
"warn" ,
309
290
"consistent-as-needed"
@@ -318,15 +299,24 @@ module.exports = {
318
299
] ,
319
300
"radix" : "error" ,
320
301
"require-await" : "error" ,
321
- "require-jsdoc" : "off" ,
322
302
"rest-spread-spacing" : "error" ,
323
- "semi" : "error" ,
303
+ "semi" : [
304
+ "error" ,
305
+ "always"
306
+ ] ,
324
307
"semi-spacing" : "error" ,
325
308
"sort-imports" : "error" ,
326
309
"sort-keys" : "warn" ,
327
310
"sort-vars" : "warn" ,
328
311
"space-before-blocks" : "warn" ,
329
- "space-before-function-paren" : "off" ,
312
+ "space-before-function-paren" : [
313
+ "warn" ,
314
+ {
315
+ "anonymous" : "ignore" ,
316
+ "named" : "never" ,
317
+ "asyncArrow" : "ignore"
318
+ }
319
+ ] ,
330
320
"space-in-parens" : "warn" ,
331
321
"space-infix-ops" : "error" ,
332
322
"space-unary-ops" : "error" ,
@@ -345,14 +335,11 @@ module.exports = {
345
335
"warn" ,
346
336
"function"
347
337
] ,
348
- "symbol-description" : "off" ,
349
338
"template-curly-spacing" : "error" ,
350
339
"template-tag-spacing" : "error" ,
351
340
"unicode-bom" : "error" ,
352
- "valid-jsdoc" : "warn" ,
353
341
"vars-on-top" : "warn" ,
354
342
"wrap-iife" : "error" ,
355
- "wrap-regex" : "off" ,
356
343
"yield-star-spacing" : "error" ,
357
344
"yoda" : "error"
358
345
}
0 commit comments