@@ -43,7 +43,11 @@ rules:
4343 no-div-regex : error
4444 no-eq-null : warn
4545 no-extra-label : error
46- no-implicit-coercion : [error, {boolean: true, number: true, string: true}]
46+ no-implicit-coercion :
47+ - error
48+ - boolean : true
49+ number : true
50+ string : true
4751 no-implicit-globals : error
4852 no-multi-assign : error
4953 no-new-symbol : error
@@ -53,7 +57,10 @@ rules:
5357 no-undef-init : off
5458 no-underscore-dangle : off
5559 no-unmodified-loop-condition : error
56- no-unused-vars : [warn, {args: 'after-used', argsIgnorePattern: '^_$'}]
60+ no-unused-vars :
61+ - warn
62+ - args : ' after-used'
63+ argsIgnorePattern : ' ^_$'
5764 no-useless-constructor : error
5865 no-var : error
5966 prefer-promise-reject-errors : error
@@ -65,24 +72,35 @@ rules:
6572 # react rules – https://github.com/yannickcr/eslint-plugin-react
6673 react/display-name : off
6774 react/jsx-key : warn
68- react/jsx-no-bind : [warn, {ignoreRefs: true, allowArrowFunctions: true}]
69- react/no-did-mount-set-state : warn
70- react/no-did-update-set-state : warn
75+ react/jsx-no-bind :
76+ - warn
77+ - ignoreRefs : true
78+ allowArrowFunctions : true
79+ react/jsx-sort-props :
80+ - warn
81+ - reservedFirst : true
82+ ignoreCase : true
83+ callbacksLast : true
7184 react/no-multi-comp : off # prevent multiple component definition per file
72- react/no-string-refs : error
73- react/no-unescaped-entities : off
74- react/no-unknown-property : warn
85+ react/no-redundant-should-component-update : warn
86+ react/no-typos : error
7587 react/prop-types : off
7688 react/self-closing-comp : warn # prevent extra closing tags for components without children
77- react/sort-comp : warn
89+ react/sort-comp :
90+ - warn
91+ - order :
92+ - static-methods
93+ - type-annotations
94+ - lifecycle
95+ - everything-else
96+ - render
7897 react/sort-prop-types : warn
7998 react/wrap-multilines : off
99+ react/jsx-boolean-value : [error, always]
80100
81101 # flow rules
82- flowtype/define-flow-type : warn
102+ flowtype/no-dupe-keys : error
83103 flowtype/use-flow-type : error
84- flowtype/valid-syntax : error
85- flowtype/no-types-missing-file-annotation : off
86104
87105 # react-native rules
88106 react-native/no-unused-styles : warn
0 commit comments