[eslint config] [minor] enable react/state-in-constructor

This commit is contained in:
Jordan Harband
2019-08-09 23:52:29 -07:00
parent 25075b5f72
commit 7f5a65832d

View File

@@ -481,9 +481,8 @@ module.exports = {
// Enforce state initialization style
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/state-in-constructor.md
// TODO: enable, semver-minor
// TODO: set to "always" once babel-preset-airbnb supports public class fields
'react/state-in-constructor': ['off', 'never'],
'react/state-in-constructor': ['error', 'never'],
// Enforces where React component static properties should be positioned
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/static-property-placement.md