Skip to content

Commit ce832ee

Browse files
Mark all ESLint rules that conflict with Prettier (#1838)
1 parent 6dfc94c commit ce832ee

File tree

1 file changed

+74
-69
lines changed

1 file changed

+74
-69
lines changed

.eslintrc.yml

Lines changed: 74 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,7 @@ rules:
4040

4141
flowtype/array-style-complex-type: [error, verbose]
4242
flowtype/array-style-simple-type: [error, verbose]
43-
flowtype/boolean-style: off
4443
flowtype/define-flow-type: error
45-
flowtype/delimiter-dangle: off
46-
flowtype/generic-spacing: off
4744
flowtype/newline-after-flow-annotation: [error, always]
4845
flowtype/no-dupe-keys: error
4946
flowtype/no-existential-type: off
@@ -54,25 +51,30 @@ rules:
5451
flowtype/no-types-missing-file-annotation: error
5552
#flowtype/no-unused-expressions: undecided
5653
flowtype/no-weak-types: [error, { any: false }]
57-
flowtype/object-type-delimiter: off
5854
#flowtype/require-compound-type-alias: undecided
5955
flowtype/require-exact-type: off
6056
flowtype/require-parameter-type: off
6157
flowtype/require-return-type: off
6258
flowtype/require-types-at-top: off
6359
flowtype/require-valid-file-annotation: [error, always, { annotationStyle: block }]
6460
flowtype/require-variable-type: off
65-
flowtype/semi: off
6661
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
7062
flowtype/spread-exact-type: off
7163
flowtype/type-id-match: off
7264
flowtype/type-import-style: [error, identifier, { ignoreTypeDefault: true }]
73-
flowtype/union-intersection-spacing: off
7465
flowtype/use-flow-type: error
7566
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
7678

7779
##################################################
7880
# ESLint builtin rules list based on `v5.16.x`
@@ -98,8 +100,6 @@ rules:
98100
no-empty-character-class: error
99101
no-ex-assign: error
100102
no-extra-boolean-cast: error
101-
no-extra-parens: off
102-
no-extra-semi: off
103103
no-func-assign: error
104104
no-inner-declarations: [error, functions]
105105
no-invalid-regexp: error
@@ -110,7 +110,6 @@ rules:
110110
no-regex-spaces: error
111111
no-sparse-arrays: error
112112
no-template-curly-in-string: error
113-
no-unexpected-multiline: off
114113
no-unreachable: error
115114
no-unsafe-finally: error
116115
no-unsafe-negation: error
@@ -129,7 +128,6 @@ rules:
129128
consistent-return: off
130129
curly: [error, all]
131130
default-case: off
132-
dot-location: off
133131
dot-notation: off
134132
eqeqeq: [error, smart]
135133
guard-for-in: error
@@ -148,7 +146,6 @@ rules:
148146
no-extra-bind: error
149147
no-extra-label: error
150148
no-fallthrough: error
151-
no-floating-decimal: off
152149
no-global-assign: error
153150
no-implicit-coercion: error
154151
no-implicit-globals: off
@@ -159,7 +156,6 @@ rules:
159156
no-lone-blocks: error
160157
no-loop-func: off
161158
no-magic-numbers: off
162-
no-multi-spaces: off
163159
no-multi-str: error
164160
no-new: error
165161
no-new-func: off
@@ -194,7 +190,6 @@ rules:
194190
#require-await: undecided
195191
require-unicode-regexp: off
196192
vars-on-top: off
197-
wrap-iife: off
198193
yoda: [error, never, {exceptRange: true}]
199194

200195
# Strict Mode
@@ -235,109 +230,57 @@ rules:
235230
# Stylistic Issues
236231
# https://eslint.org/docs/rules/#stylistic-issues
237232

238-
array-bracket-newline: off
239-
array-bracket-spacing: off
240-
array-element-newline: off
241-
block-spacing: off
242-
brace-style: off
243233
camelcase: [error, {properties: always}]
244234
#capitalized-comments: undecided
245-
comma-dangle: off
246-
comma-spacing: off
247-
comma-style: off
248-
computed-property-spacing: off
249235
consistent-this: off
250-
eol-last: off
251-
func-call-spacing: off
252236
func-name-matching: off
253237
func-names: off
254238
func-style: off
255-
function-paren-newline: off
256239
id-blacklist: off
257240
id-length: off
258241
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
264242
#line-comment-position: undecided
265-
linebreak-style: error
266243
lines-around-comment: off
267244
lines-between-class-members: off
268245
max-depth: off
269-
max-len: off
270246
max-lines: off
271247
max-lines-per-function: off
272248
max-nested-callbacks: off
273249
max-params: off
274250
max-statements: off
275251
max-statements-per-line: off
276252
#multiline-comment-style: undecided
277-
multiline-ternary: off
278253
new-cap: off
279-
new-parens: off
280-
newline-per-chained-call: off
281254
no-array-constructor: error
282255
no-bitwise: off
283256
no-continue: off
284257
no-inline-comments: off
285258
no-lonely-if: error
286-
no-mixed-operators: off
287-
no-mixed-spaces-and-tabs: off
288259
no-multi-assign: off
289-
no-multiple-empty-lines: off
290260
no-negated-condition: off
291261
no-nested-ternary: off
292262
no-new-object: error
293263
no-plusplus: off
294-
no-spaced-func: off
295264
no-restricted-syntax: off
296265
no-tabs: error
297266
no-ternary: off
298-
no-trailing-spaces: off
299267
no-underscore-dangle: off
300268
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
306269
one-var: [error, never]
307-
one-var-declaration-per-line: off
308270
operator-assignment: [error, always]
309-
operator-linebreak: off
310-
padded-blocks: off
311271
padding-line-between-statements: off
312272
prefer-object-spread: error
313-
quote-props: off
314273
quotes: off
315-
semi: off
316-
semi-spacing: off
317-
semi-style: off
318274
sort-keys: off
319275
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
325276
spaced-comment: [error, always]
326-
switch-colon-spacing: off
327-
template-tag-spacing: off
328-
unicode-bom: off
329-
wrap-regex: off
330277

331278
# ECMAScript 6
332279
# https://eslint.org/docs/rules/#ecmascript-6
333280

334281
arrow-body-style: off
335-
arrow-parens: off
336-
arrow-spacing: off
337282
constructor-super: error
338-
generator-star-spacing: off
339283
no-class-assign: error
340-
no-confusing-arrow: off
341284
no-const-assign: error
342285
no-dupe-class-members: error
343286
no-duplicate-imports: error
@@ -357,10 +300,72 @@ rules:
357300
prefer-spread: off
358301
prefer-template: off
359302
require-yield: off
360-
rest-spread-spacing: off
361303
#sort-imports: undecided
362304
#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
363364
template-curly-spacing: off
365+
template-tag-spacing: off
366+
unicode-bom: off
367+
wrap-iife: off
368+
wrap-regex: off
364369
yield-star-spacing: off
365370

366371
overrides:

0 commit comments

Comments
 (0)