mirror of
https://github.com/airbnb/javascript.git
synced 2026-04-25 03:00:19 -04:00
[eslint config] [minor] enable react/state-in-constructor
This commit is contained in:
3
packages/eslint-config-airbnb/rules/react.js
vendored
3
packages/eslint-config-airbnb/rules/react.js
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user