@@ -40,10 +40,7 @@ rules:
40
40
41
41
flowtype/array-style-complex-type : [error, verbose]
42
42
flowtype/array-style-simple-type : [error, verbose]
43
- flowtype/boolean-style : off
44
43
flowtype/define-flow-type : error
45
- flowtype/delimiter-dangle : off
46
- flowtype/generic-spacing : off
47
44
flowtype/newline-after-flow-annotation : [error, always]
48
45
flowtype/no-dupe-keys : error
49
46
flowtype/no-existential-type : off
@@ -54,25 +51,30 @@ rules:
54
51
flowtype/no-types-missing-file-annotation : error
55
52
# flowtype/no-unused-expressions: undecided
56
53
flowtype/no-weak-types : [error, { any: false }]
57
- flowtype/object-type-delimiter : off
58
54
# flowtype/require-compound-type-alias: undecided
59
55
flowtype/require-exact-type : off
60
56
flowtype/require-parameter-type : off
61
57
flowtype/require-return-type : off
62
58
flowtype/require-types-at-top : off
63
59
flowtype/require-valid-file-annotation : [error, always, { annotationStyle: block }]
64
60
flowtype/require-variable-type : off
65
- flowtype/semi : off
66
61
flowtype/sort-keys : off
67
- flowtype/space-after-type-colon : off
68
- flowtype/space-before-generic-bracket : off
69
- flowtype/space-before-type-colon : off
70
62
flowtype/spread-exact-type : off
71
63
flowtype/type-id-match : off
72
64
flowtype/type-import-style : [error, identifier, { ignoreTypeDefault: true }]
73
- flowtype/union-intersection-spacing : off
74
65
flowtype/use-flow-type : error
75
66
flowtype/valid-syntax : off
67
+ # Bellow rules are disabled because coflicts with Prettier, see:
68
+ # https://github.com/prettier/eslint-config-prettier/blob/master/flowtype.js
69
+ flowtype/boolean-style : off
70
+ flowtype/delimiter-dangle : off
71
+ flowtype/generic-spacing : off
72
+ flowtype/object-type-delimiter : off
73
+ flowtype/semi : off
74
+ flowtype/space-after-type-colon : off
75
+ flowtype/space-before-generic-bracket : off
76
+ flowtype/space-before-type-colon : off
77
+ flowtype/union-intersection-spacing : off
76
78
77
79
# #################################################
78
80
# ESLint builtin rules list based on `v5.16.x`
@@ -98,8 +100,6 @@ rules:
98
100
no-empty-character-class : error
99
101
no-ex-assign : error
100
102
no-extra-boolean-cast : error
101
- no-extra-parens : off
102
- no-extra-semi : off
103
103
no-func-assign : error
104
104
no-inner-declarations : [error, functions]
105
105
no-invalid-regexp : error
@@ -110,7 +110,6 @@ rules:
110
110
no-regex-spaces : error
111
111
no-sparse-arrays : error
112
112
no-template-curly-in-string : error
113
- no-unexpected-multiline : off
114
113
no-unreachable : error
115
114
no-unsafe-finally : error
116
115
no-unsafe-negation : error
@@ -129,7 +128,6 @@ rules:
129
128
consistent-return : off
130
129
curly : [error, all]
131
130
default-case : off
132
- dot-location : off
133
131
dot-notation : off
134
132
eqeqeq : [error, smart]
135
133
guard-for-in : error
@@ -148,7 +146,6 @@ rules:
148
146
no-extra-bind : error
149
147
no-extra-label : error
150
148
no-fallthrough : error
151
- no-floating-decimal : off
152
149
no-global-assign : error
153
150
no-implicit-coercion : error
154
151
no-implicit-globals : off
@@ -159,7 +156,6 @@ rules:
159
156
no-lone-blocks : error
160
157
no-loop-func : off
161
158
no-magic-numbers : off
162
- no-multi-spaces : off
163
159
no-multi-str : error
164
160
no-new : error
165
161
no-new-func : off
@@ -194,7 +190,6 @@ rules:
194
190
# require-await: undecided
195
191
require-unicode-regexp : off
196
192
vars-on-top : off
197
- wrap-iife : off
198
193
yoda : [error, never, {exceptRange: true}]
199
194
200
195
# Strict Mode
@@ -235,109 +230,57 @@ rules:
235
230
# Stylistic Issues
236
231
# https://eslint.org/docs/rules/#stylistic-issues
237
232
238
- array-bracket-newline : off
239
- array-bracket-spacing : off
240
- array-element-newline : off
241
- block-spacing : off
242
- brace-style : off
243
233
camelcase : [error, {properties: always}]
244
234
# capitalized-comments: undecided
245
- comma-dangle : off
246
- comma-spacing : off
247
- comma-style : off
248
- computed-property-spacing : off
249
235
consistent-this : off
250
- eol-last : off
251
- func-call-spacing : off
252
236
func-name-matching : off
253
237
func-names : off
254
238
func-style : off
255
- function-paren-newline : off
256
239
id-blacklist : off
257
240
id-length : off
258
241
id-match : [error, "^(?:_?[a-zA-Z0-9]*)|[_A-Z0-9]+$"]
259
- implicit-arrow-linebreak : off
260
- indent : off
261
- jsx-quotes : off
262
- key-spacing : off
263
- keyword-spacing : off
264
242
# line-comment-position: undecided
265
- linebreak-style : error
266
243
lines-around-comment : off
267
244
lines-between-class-members : off
268
245
max-depth : off
269
- max-len : off
270
246
max-lines : off
271
247
max-lines-per-function : off
272
248
max-nested-callbacks : off
273
249
max-params : off
274
250
max-statements : off
275
251
max-statements-per-line : off
276
252
# multiline-comment-style: undecided
277
- multiline-ternary : off
278
253
new-cap : off
279
- new-parens : off
280
- newline-per-chained-call : off
281
254
no-array-constructor : error
282
255
no-bitwise : off
283
256
no-continue : off
284
257
no-inline-comments : off
285
258
no-lonely-if : error
286
- no-mixed-operators : off
287
- no-mixed-spaces-and-tabs : off
288
259
no-multi-assign : off
289
- no-multiple-empty-lines : off
290
260
no-negated-condition : off
291
261
no-nested-ternary : off
292
262
no-new-object : error
293
263
no-plusplus : off
294
- no-spaced-func : off
295
264
no-restricted-syntax : off
296
265
no-tabs : error
297
266
no-ternary : off
298
- no-trailing-spaces : off
299
267
no-underscore-dangle : off
300
268
no-unneeded-ternary : error
301
- no-whitespace-before-property : off
302
- nonblock-statement-body-position : off
303
- object-curly-newline : off
304
- object-curly-spacing : off
305
- object-property-newline : off
306
269
one-var : [error, never]
307
- one-var-declaration-per-line : off
308
270
operator-assignment : [error, always]
309
- operator-linebreak : off
310
- padded-blocks : off
311
271
padding-line-between-statements : off
312
272
prefer-object-spread : error
313
- quote-props : off
314
273
quotes : off
315
- semi : off
316
- semi-spacing : off
317
- semi-style : off
318
274
sort-keys : off
319
275
sort-vars : off
320
- space-before-blocks : off
321
- space-before-function-paren : off
322
- space-in-parens : off
323
- space-infix-ops : off
324
- space-unary-ops : off
325
276
spaced-comment : [error, always]
326
- switch-colon-spacing : off
327
- template-tag-spacing : off
328
- unicode-bom : off
329
- wrap-regex : off
330
277
331
278
# ECMAScript 6
332
279
# https://eslint.org/docs/rules/#ecmascript-6
333
280
334
281
arrow-body-style : off
335
- arrow-parens : off
336
- arrow-spacing : off
337
282
constructor-super : error
338
- generator-star-spacing : off
339
283
no-class-assign : error
340
- no-confusing-arrow : off
341
284
no-const-assign : error
342
285
no-dupe-class-members : error
343
286
no-duplicate-imports : error
@@ -357,10 +300,72 @@ rules:
357
300
prefer-spread : off
358
301
prefer-template : off
359
302
require-yield : off
360
- rest-spread-spacing : off
361
303
# sort-imports: undecided
362
304
# symbol-description: undecided
305
+
306
+ # Bellow rules are disabled because coflicts with Prettier, see:
307
+ # https://github.com/prettier/eslint-config-prettier/blob/master/index.js
308
+ array-bracket-newline : off
309
+ array-bracket-spacing : off
310
+ array-element-newline : off
311
+ arrow-parens : off
312
+ arrow-spacing : off
313
+ block-spacing : off
314
+ brace-style : off
315
+ comma-dangle : off
316
+ comma-spacing : off
317
+ comma-style : off
318
+ computed-property-spacing : off
319
+ dot-location : off
320
+ eol-last : off
321
+ func-call-spacing : off
322
+ function-paren-newline : off
323
+ generator-star-spacing : off
324
+ implicit-arrow-linebreak : off
325
+ indent : off
326
+ jsx-quotes : off
327
+ key-spacing : off
328
+ keyword-spacing : off
329
+ linebreak-style : error
330
+ max-len : off
331
+ multiline-ternary : off
332
+ newline-per-chained-call : off
333
+ new-parens : off
334
+ no-confusing-arrow : off
335
+ no-extra-parens : off
336
+ no-extra-semi : off
337
+ no-floating-decimal : off
338
+ no-mixed-operators : off
339
+ no-mixed-spaces-and-tabs : off
340
+ no-multi-spaces : off
341
+ no-multiple-empty-lines : off
342
+ no-spaced-func : off
343
+ no-trailing-spaces : off
344
+ no-unexpected-multiline : off
345
+ no-whitespace-before-property : off
346
+ nonblock-statement-body-position : off
347
+ object-curly-newline : off
348
+ object-curly-spacing : off
349
+ object-property-newline : off
350
+ one-var-declaration-per-line : off
351
+ operator-linebreak : off
352
+ padded-blocks : off
353
+ quote-props : off
354
+ rest-spread-spacing : off
355
+ semi : off
356
+ semi-spacing : off
357
+ semi-style : off
358
+ space-before-blocks : off
359
+ space-before-function-paren : off
360
+ space-in-parens : off
361
+ space-infix-ops : off
362
+ space-unary-ops : off
363
+ switch-colon-spacing : off
363
364
template-curly-spacing : off
365
+ template-tag-spacing : off
366
+ unicode-bom : off
367
+ wrap-iife : off
368
+ wrap-regex : off
364
369
yield-star-spacing : off
365
370
366
371
overrides :
0 commit comments