We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
react/no-object-type-as-default-prop
1 parent 1336af5 commit a8ad744Copy full SHA for a8ad744
index.js
@@ -36,7 +36,12 @@ export default [
36
unnamedComponents: 'arrow-function',
37
},
38
],
39
- 'react/hook-use-state': 'error',
+ 'react/hook-use-state': [
40
+ 'error',
41
+ {
42
+ allowDestructuredState: true,
43
+ },
44
+ ],
45
'react/iframe-missing-sandbox': 'error',
46
'react/no-access-state-in-setstate': 'error',
47
'react/no-array-index-key': 'error',
@@ -51,6 +56,7 @@ export default [
51
56
'react/no-invalid-html-attribute': 'error',
52
57
'react/no-is-mounted': 'error',
53
58
'react/no-namespace': 'error',
59
+ 'react/no-object-type-as-default-prop': 'error',
54
60
'react/no-redundant-should-component-update': 'error',
55
61
'react/no-render-return-value': 'error',
62
'react/no-typos': 'error',
0 commit comments