@@ -17,7 +17,6 @@ settings:
1717 react :
1818 version : ' 16.10'
1919rules :
20-
2120 # # Possible Errors
2221 # # ----------------------------------------
2322 # # Enforce “for” loop update clause moving the counter in the right
@@ -308,13 +307,16 @@ rules:
308307 # # Enforce or disallow capitalization of the first letter of a comment
309308 # capitalized-comments: error
310309 # # 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+ ]
318320 # # Enforce consistent spacing before and after commas
319321 comma-spacing : [error, { before: false, after: true }]
320322 # # Enforce consistent comma style
@@ -349,10 +351,10 @@ rules:
349351 # # Enforce the location of arrow function bodies
350352 # implicit-arrow-linebreak: error
351353 # # Enforce consistent indentation
352- indent : [error, 2, { SwitchCase: 1 }]
354+ # indent: [error, 2, { SwitchCase: 1 }]
353355 # # Enforce the consistent use of either double or single quotes in JSX
354356 # # attributes
355- jsx-quotes : [error, prefer-double]
357+ # jsx-quotes: [error, prefer-double]
356358 # # Enforce consistent spacing between keys and values in object literal
357359 # # properties
358360 key-spacing : [error, { beforeColon: false, afterColon: true }]
@@ -369,14 +371,17 @@ rules:
369371 # # Enforce a maximum depth that blocks can be nested
370372 # max-depth: error
371373 # # 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+ ]
380385 # # Enforce a maximum number of lines per file
381386 # max-lines: error
382387 # # Enforce a maximum number of line of code in a function
@@ -413,7 +418,7 @@ rules:
413418 # # Disallow mixed binary operators
414419 # no-mixed-operators: error
415420 # # Disallow mixed spaces and tabs for indentation
416- no-mixed-spaces-and-tabs : error
421+ # no-mixed-spaces-and-tabs: error
417422 # # Disallow use of chained assignment expressions
418423 # no-multi-assign: error
419424 # # Disallow multiple empty lines
@@ -439,13 +444,13 @@ rules:
439444 # # Disallow ternary operators when simpler alternatives exist
440445 # no-unneeded-ternary: error
441446 # # Disallow whitespace before properties
442- no-whitespace-before-property : error
447+ # no-whitespace-before-property: error
443448 # # Enforce the location of single-line statements
444449 # nonblock-statement-body-position: error
445450 # # Enforce consistent line breaks inside braces
446451 # object-curly-newline: [error, { multiline: true }]
447452 # # Enforce consistent spacing inside braces
448- object-curly-spacing : [error, always]
453+ # object-curly-spacing: [error, always]
449454 # # Enforce placing object properties on separate lines
450455 # object-property-newline: error
451456 # # Enforce variables to be declared either together or separately in
@@ -456,7 +461,7 @@ rules:
456461 # # Require or disallow assignment operator shorthand where possible
457462 # operator-assignment: error
458463 # # Enforce consistent linebreak style for operators
459- operator-linebreak : [error, before]
464+ # operator-linebreak: [error, before]
460465 # # Require or disallow padding within blocks
461466 # padded-blocks: error
462467 # # Require or disallow padding lines between statements
@@ -479,15 +484,12 @@ rules:
479484 # # Require variables within the same declaration block to be sorted
480485 # sort-vars: error
481486 # # Enforce consistent spacing before blocks
482- space-before-blocks : [error, always]
487+ # space-before-blocks: [error, always]
483488 # # 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 }]
489491 # # Enforce consistent spacing inside parentheses
490- space-in-parens : [error, never]
492+ # space-in-parens: [error, never]
491493 # # Require spacing around infix operators
492494 # space-infix-ops: error
493495 # # Enforce consistent spacing before or after unary operators
@@ -694,7 +696,7 @@ rules:
694696 react/jsx-closing-tag-location : error
695697 # # Enforce or disallow newlines inside of curly braces in JSX attributes and
696698 # # expressions (fixable)
697- react/jsx-curly-newline : error
699+ # react/jsx-curly-newline: error
698700 # # Enforce or disallow spaces inside of curly braces in JSX attributes and
699701 # # expressions (fixable)
700702 react/jsx-curly-spacing : error
@@ -707,11 +709,9 @@ rules:
707709 # # Enforce event handler naming conventions in JSX
708710 react/jsx-handler-names : error
709711 # # Validate JSX indentation (fixable)
710- react/jsx-indent : [error, 2, {
711- checkAttributes : true,
712- }]
712+ # react/jsx-indent: [error, 2, { checkAttributes: true }]
713713 # # Validate props indentation in JSX (fixable)
714- react/jsx-indent-props : [error, 2]
714+ # react/jsx-indent-props: [error, 2]
715715 # # Validate JSX has key prop when in array or iterator
716716 react/jsx-key : error
717717 # # Validate JSX maximum depth
@@ -760,3 +760,4 @@ rules:
760760 # # Prevents the use of unused imports.
761761 # # This could be done by enabling no-unused-vars, but we're doing this for now
762762 unused-imports/no-unused-imports : error
763+ extends : prettier
0 commit comments