@@ -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
@@ -334,7 +336,7 @@ rules:
334336 # # Require or disallow named function expressions
335337 # func-names: error
336338 # # Enforce the consistent use of either function declarations or expressions
337- func-style : [error, expression]
339+ # func-style: [error, expression]
338340 # # Enforce line breaks between arguments of a function call
339341 # function-call-argument-newline: error
340342 # # Enforce consistent line breaks inside function parentheses
@@ -349,15 +351,15 @@ 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
358- key-spacing : [error, { beforeColon: false, afterColon: true }]
360+ # key-spacing: [error, { beforeColon: false, afterColon: true }]
359361 # # Enforce consistent spacing before and after keywords
360- keyword-spacing : [error, { before: true, after: true }]
362+ # keyword-spacing: [error, { before: true, after: true }]
361363 # # Enforce position of line comments
362364 # line-comment-position: error
363365 # # Enforce consistent linebreak style
@@ -369,15 +371,15 @@ 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 : 120 ,
374- # # Ignore imports
375- ignorePattern : ' ^(import\s.+\sfrom\s|.*require\()' ,
376- ignoreUrls : true,
377- ignoreRegExpLiterals : true,
378- ignoreStrings : true,
379- ignoreTemplateLiterals : true,
380- }]
374+ # max-len: [error, {
375+ # code: 80 ,
376+ # ## Ignore imports
377+ # ignorePattern: '^(import\s.+\sfrom\s|.*require\()',
378+ # ignoreUrls: true,
379+ # ignoreRegExpLiterals: true,
380+ # ignoreStrings: true,
381+ # ignoreTemplateLiterals: true,
382+ # }]
381383 # # Enforce a maximum number of lines per file
382384 # max-lines: error
383385 # # Enforce a maximum number of line of code in a function
@@ -414,7 +416,7 @@ rules:
414416 # # Disallow mixed binary operators
415417 # no-mixed-operators: error
416418 # # Disallow mixed spaces and tabs for indentation
417- no-mixed-spaces-and-tabs : error
419+ # no-mixed-spaces-and-tabs: error
418420 # # Disallow use of chained assignment expressions
419421 # no-multi-assign: error
420422 # # Disallow multiple empty lines
@@ -440,7 +442,7 @@ rules:
440442 # # Disallow ternary operators when simpler alternatives exist
441443 # no-unneeded-ternary: error
442444 # # Disallow whitespace before properties
443- no-whitespace-before-property : error
445+ # no-whitespace-before-property: error
444446 # # Enforce the location of single-line statements
445447 # nonblock-statement-body-position: error
446448 # # Enforce consistent line breaks inside braces
@@ -457,7 +459,7 @@ rules:
457459 # # Require or disallow assignment operator shorthand where possible
458460 # operator-assignment: error
459461 # # Enforce consistent linebreak style for operators
460- operator-linebreak : [error, before]
462+ # operator-linebreak: [error, before]
461463 # # Require or disallow padding within blocks
462464 # padded-blocks: error
463465 # # Require or disallow padding lines between statements
@@ -482,11 +484,11 @@ rules:
482484 # # Enforce consistent spacing before blocks
483485 space-before-blocks : [error, always]
484486 # # Enforce consistent spacing before function definition opening parenthesis
485- space-before-function-paren : [error, {
486- anonymous : always,
487- named : never,
488- asyncArrow : always,
489- }]
487+ # space-before-function-paren: [error, {
488+ # anonymous: always,
489+ # named: never,
490+ # asyncArrow: always,
491+ # }]
490492 # # Enforce consistent spacing inside parentheses
491493 space-in-parens : [error, never]
492494 # # Require spacing around infix operators
@@ -648,7 +650,7 @@ rules:
648650 # # Enforce ES5 or ES6 class for React Components
649651 react/prefer-es6-class : error
650652 # # Enforce that props are read-only
651- react/prefer-read-only-props : error
653+ react/prefer-read-only-props : off
652654 # # Enforce stateless React Components to be written as a pure function
653655 react/prefer-stateless-function : error
654656 # # Prevent missing props validation in a React component definition
@@ -695,7 +697,7 @@ rules:
695697 react/jsx-closing-tag-location : error
696698 # # Enforce or disallow newlines inside of curly braces in JSX attributes and
697699 # # expressions (fixable)
698- react/jsx-curly-newline : error
700+ # react/jsx-curly-newline: error
699701 # # Enforce or disallow spaces inside of curly braces in JSX attributes and
700702 # # expressions (fixable)
701703 react/jsx-curly-spacing : error
@@ -708,11 +710,11 @@ rules:
708710 # # Enforce event handler naming conventions in JSX
709711 react/jsx-handler-names : error
710712 # # Validate JSX indentation (fixable)
711- react/jsx-indent : [error, 2, {
712- checkAttributes : true,
713- }]
713+ # react/jsx-indent: [error, 2, {
714+ # checkAttributes: true,
715+ # }]
714716 # # Validate props indentation in JSX (fixable)
715- react/jsx-indent-props : [error, 2]
717+ # react/jsx-indent-props: [error, 2]
716718 # # Validate JSX has key prop when in array or iterator
717719 react/jsx-key : error
718720 # # Validate JSX maximum depth
0 commit comments