@@ -96,7 +96,9 @@ module.exports = {
9696 }
9797 ] ,
9898 // Enforce ES5 or ES6 class for React Components
99- "react/prefer-es6-class" : [ "error" , "always" ] ,
99+ "react/prefer-es6-class" : "off" ,
100+ // Using Flow, one can define types for props. This rule enforces that prop types are read-only (covariant).
101+ "react/prefer-read-only-props" : "off" ,
100102 // Enforce stateless React Components to be written as a pure function
101103 "react/prefer-stateless-function" : [
102104 "error" ,
@@ -180,6 +182,10 @@ module.exports = {
180182 sortShapeProp : true
181183 }
182184 ] ,
185+ // Enforce the state initialization style to be either in a constructor or with a class property
186+ "react/state-in-constructor" : "error" ,
187+ // Defines where React component static properties should be positioned.
188+ "react/static-property-placement" : "off" ,
183189 // Enforce style prop value being an object
184190 "react/style-prop-object" : "error" ,
185191 // Prevent void DOM elements (e.g. `<img />`, `<br />`) from receiving children
@@ -276,6 +282,8 @@ module.exports = {
276282 // Enforces that there is exactly one space between all attributes and after tag name and the first attribute in the same line.
277283 // Disable in favor `prettier`
278284 "react/jsx-props-no-multi-spaces" : "off" ,
285+ // Disallow JSX props spreading
286+ "react/jsx-props-no-spreading" : "off" ,
279287 // Enforce defaultProps declarations alphabetical sorting
280288 "react/jsx-sort-default-props" : [
281289 "off" ,
0 commit comments