@@ -17,7 +17,6 @@ settings:
17
17
react :
18
18
version : ' 16.10'
19
19
rules :
20
-
21
20
# # Possible Errors
22
21
# # ----------------------------------------
23
22
# # Enforce “for” loop update clause moving the counter in the right
@@ -308,13 +307,16 @@ rules:
308
307
# # Enforce or disallow capitalization of the first letter of a comment
309
308
# capitalized-comments: error
310
309
# # Require or disallow trailing commas
311
- comma-dangle : [error, {
312
- arrays : always-multiline,
313
- objects : always-multiline,
314
- imports : always-multiline,
315
- exports : always-multiline,
316
- functions : only-multiline, # # Optional on functions
317
- }]
310
+ comma-dangle : [
311
+ error,
312
+ {
313
+ arrays : always-multiline,
314
+ objects : always-multiline,
315
+ imports : always-multiline,
316
+ exports : always-multiline,
317
+ functions : only-multiline, # # Optional on functions
318
+ },
319
+ ]
318
320
# # Enforce consistent spacing before and after commas
319
321
comma-spacing : [error, { before: false, after: true }]
320
322
# # Enforce consistent comma style
@@ -349,10 +351,10 @@ rules:
349
351
# # Enforce the location of arrow function bodies
350
352
# implicit-arrow-linebreak: error
351
353
# # Enforce consistent indentation
352
- indent : [error, 2, { SwitchCase: 1 }]
354
+ # indent: [error, 2, { SwitchCase: 1 }]
353
355
# # Enforce the consistent use of either double or single quotes in JSX
354
356
# # attributes
355
- jsx-quotes : [error, prefer-double]
357
+ # jsx-quotes: [error, prefer-double]
356
358
# # Enforce consistent spacing between keys and values in object literal
357
359
# # properties
358
360
key-spacing : [error, { beforeColon: false, afterColon: true }]
@@ -369,14 +371,17 @@ rules:
369
371
# # Enforce a maximum depth that blocks can be nested
370
372
# max-depth: error
371
373
# # Enforce a maximum line length
372
- max-len : [error, {
373
- code : 200,
374
- # # Ignore imports
375
- ignorePattern : ' ^(import\s.+\sfrom\s|.*require\()' ,
376
- ignoreUrls : true,
377
- ignoreRegExpLiterals : true,
378
- ignoreStrings : true,
379
- }]
374
+ max-len : [
375
+ error,
376
+ {
377
+ code : 200,
378
+ # # Ignore imports
379
+ ignorePattern : ' ^(import\s.+\sfrom\s|.*require\()' ,
380
+ ignoreUrls : true,
381
+ ignoreRegExpLiterals : true,
382
+ ignoreStrings : true,
383
+ },
384
+ ]
380
385
# # Enforce a maximum number of lines per file
381
386
# max-lines: error
382
387
# # Enforce a maximum number of line of code in a function
@@ -413,7 +418,7 @@ rules:
413
418
# # Disallow mixed binary operators
414
419
# no-mixed-operators: error
415
420
# # Disallow mixed spaces and tabs for indentation
416
- no-mixed-spaces-and-tabs : error
421
+ # no-mixed-spaces-and-tabs: error
417
422
# # Disallow use of chained assignment expressions
418
423
# no-multi-assign: error
419
424
# # Disallow multiple empty lines
@@ -439,13 +444,13 @@ rules:
439
444
# # Disallow ternary operators when simpler alternatives exist
440
445
# no-unneeded-ternary: error
441
446
# # Disallow whitespace before properties
442
- no-whitespace-before-property : error
447
+ # no-whitespace-before-property: error
443
448
# # Enforce the location of single-line statements
444
449
# nonblock-statement-body-position: error
445
450
# # Enforce consistent line breaks inside braces
446
451
# object-curly-newline: [error, { multiline: true }]
447
452
# # Enforce consistent spacing inside braces
448
- object-curly-spacing : [error, always]
453
+ # object-curly-spacing: [error, always]
449
454
# # Enforce placing object properties on separate lines
450
455
# object-property-newline: error
451
456
# # Enforce variables to be declared either together or separately in
@@ -456,7 +461,7 @@ rules:
456
461
# # Require or disallow assignment operator shorthand where possible
457
462
# operator-assignment: error
458
463
# # Enforce consistent linebreak style for operators
459
- operator-linebreak : [error, before]
464
+ # operator-linebreak: [error, before]
460
465
# # Require or disallow padding within blocks
461
466
# padded-blocks: error
462
467
# # Require or disallow padding lines between statements
@@ -479,15 +484,12 @@ rules:
479
484
# # Require variables within the same declaration block to be sorted
480
485
# sort-vars: error
481
486
# # Enforce consistent spacing before blocks
482
- space-before-blocks : [error, always]
487
+ # space-before-blocks: [error, always]
483
488
# # Enforce consistent spacing before function definition opening parenthesis
484
- space-before-function-paren : [error, {
485
- anonymous : always,
486
- named : never,
487
- asyncArrow : always,
488
- }]
489
+ # space-before-function-paren:
490
+ # [error, { anonymous: always, named: never, asyncArrow: always }]
489
491
# # Enforce consistent spacing inside parentheses
490
- space-in-parens : [error, never]
492
+ # space-in-parens: [error, never]
491
493
# # Require spacing around infix operators
492
494
# space-infix-ops: error
493
495
# # Enforce consistent spacing before or after unary operators
@@ -694,7 +696,7 @@ rules:
694
696
react/jsx-closing-tag-location : error
695
697
# # Enforce or disallow newlines inside of curly braces in JSX attributes and
696
698
# # expressions (fixable)
697
- react/jsx-curly-newline : error
699
+ # react/jsx-curly-newline: error
698
700
# # Enforce or disallow spaces inside of curly braces in JSX attributes and
699
701
# # expressions (fixable)
700
702
react/jsx-curly-spacing : error
@@ -707,11 +709,9 @@ rules:
707
709
# # Enforce event handler naming conventions in JSX
708
710
react/jsx-handler-names : error
709
711
# # Validate JSX indentation (fixable)
710
- react/jsx-indent : [error, 2, {
711
- checkAttributes : true,
712
- }]
712
+ # react/jsx-indent: [error, 2, { checkAttributes: true }]
713
713
# # Validate props indentation in JSX (fixable)
714
- react/jsx-indent-props : [error, 2]
714
+ # react/jsx-indent-props: [error, 2]
715
715
# # Validate JSX has key prop when in array or iterator
716
716
react/jsx-key : error
717
717
# # Validate JSX maximum depth
@@ -760,3 +760,4 @@ rules:
760
760
# # Prevents the use of unused imports.
761
761
# # This could be done by enabling no-unused-vars, but we're doing this for now
762
762
unused-imports/no-unused-imports : error
763
+ extends : prettier
0 commit comments