Skip to content

Commit 5a981ed

Browse files
committed
feat(state-in-constructor): actually enforced defining with a class property this time
1 parent 6bb7607 commit 5a981ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ module.exports = {
77
'react/jsx-filename-extension': ['error', {extensions: ['.js']}],
88
'react/require-default-props': 'off',
99
'react-hooks/rules-of-hooks': 'error',
10-
'react-hooks/exhaustive-deps': 'warn'
10+
'react-hooks/exhaustive-deps': 'warn',
11+
'react/state-in-constructor': ['error', 'never']
1112
},
1213

1314
overrides: [{

0 commit comments

Comments
 (0)