Skip to content

Commit 5302784

Browse files
committed
[eslint config] [patch] react/state-in-constructor: fix incorrect configuration
1 parent bdba997 commit 5302784

File tree

1 file changed

+2
-2
lines changed
  • packages/eslint-config-airbnb/rules

1 file changed

+2
-2
lines changed

packages/eslint-config-airbnb/rules/react.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,8 @@ module.exports = {
481481

482482
// Enforce state initialization style
483483
// 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'],
484+
// TODO: set to "never" once babel-preset-airbnb supports public class fields
485+
'react/state-in-constructor': ['error', 'always'],
486486

487487
// Enforces where React component static properties should be positioned
488488
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/static-property-placement.md

0 commit comments

Comments
 (0)