Skip to content

Commit 71a236e

Browse files
committed
feat(destructured-assignment): allowed not destructuring 4 class fields
1 parent 00c4e29 commit 71a236e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ module.exports = {
1515
'react-hooks/rules-of-hooks': 'error',
1616
'react-hooks/exhaustive-deps': 'warn',
1717
'react/state-in-constructor': ['error', 'never'],
18+
'react/destructuring-assignment': ['error', 'always', {ignoreClassFields: true}],
1819
'jsx-a11y/label-has-associated-control': ['error', {assert: 'either'}]
1920
},
2021

0 commit comments

Comments
 (0)