Skip to content

Commit a8ad744

Browse files
committedJan 21, 2025
1 parent 1336af5 commit a8ad744

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed
 

Diff for: ‎index.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,12 @@ export default [
3636
unnamedComponents: 'arrow-function',
3737
},
3838
],
39-
'react/hook-use-state': 'error',
39+
'react/hook-use-state': [
40+
'error',
41+
{
42+
allowDestructuredState: true,
43+
},
44+
],
4045
'react/iframe-missing-sandbox': 'error',
4146
'react/no-access-state-in-setstate': 'error',
4247
'react/no-array-index-key': 'error',
@@ -51,6 +56,7 @@ export default [
5156
'react/no-invalid-html-attribute': 'error',
5257
'react/no-is-mounted': 'error',
5358
'react/no-namespace': 'error',
59+
'react/no-object-type-as-default-prop': 'error',
5460
'react/no-redundant-should-component-update': 'error',
5561
'react/no-render-return-value': 'error',
5662
'react/no-typos': 'error',

0 commit comments

Comments
 (0)
Please sign in to comment.