We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
react/state-in-constructor
1 parent bdba997 commit 5302784Copy full SHA for 5302784
packages/eslint-config-airbnb/rules/react.js
@@ -481,8 +481,8 @@ module.exports = {
481
482
// Enforce state initialization style
483
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/state-in-constructor.md
484
- // TODO: set to "always" once babel-preset-airbnb supports public class fields
485
- 'react/state-in-constructor': ['error', 'never'],
+ // TODO: set to "never" once babel-preset-airbnb supports public class fields
+ 'react/state-in-constructor': ['error', 'always'],
486
487
// Enforces where React component static properties should be positioned
488
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/static-property-placement.md
0 commit comments