@@ -140,25 +140,30 @@ export async function react(
140
140
141
141
// recommended rules from @eslint -react
142
142
'react/ensure-forward-ref-using-ref' : 'warn' ,
143
+ 'react/jsx-no-duplicate-props' : 'warn' ,
144
+ 'react/jsx-uses-vars' : 'warn' ,
143
145
'react/no-access-state-in-setstate' : 'error' ,
144
146
'react/no-array-index-key' : 'warn' ,
145
147
'react/no-children-count' : 'warn' ,
146
148
'react/no-children-for-each' : 'warn' ,
147
149
'react/no-children-map' : 'warn' ,
148
150
'react/no-children-only' : 'warn' ,
149
- 'react/no-children-prop' : 'warn' ,
150
151
'react/no-children-to-array' : 'warn' ,
151
152
'react/no-clone-element' : 'warn' ,
152
153
'react/no-comment-textnodes' : 'warn' ,
153
154
'react/no-component-will-mount' : 'error' ,
154
155
'react/no-component-will-receive-props' : 'error' ,
155
156
'react/no-component-will-update' : 'error' ,
157
+ 'react/no-context-provider' : 'warn' ,
156
158
'react/no-create-ref' : 'error' ,
159
+ 'react/no-default-props' : 'error' ,
157
160
'react/no-direct-mutation-state' : 'error' ,
158
161
'react/no-duplicate-key' : 'error' ,
159
- 'react/no-implicit-key' : 'error' ,
162
+ 'react/no-forward-ref' : 'warn' ,
163
+ 'react/no-implicit-key' : 'warn' ,
160
164
'react/no-missing-key' : 'error' ,
161
- 'react/no-nested-components' : 'warn' ,
165
+ 'react/no-nested-components' : 'error' ,
166
+ 'react/no-prop-types' : 'error' ,
162
167
'react/no-redundant-should-component-update' : 'error' ,
163
168
'react/no-set-state-in-component-did-mount' : 'warn' ,
164
169
'react/no-set-state-in-component-did-update' : 'warn' ,
@@ -167,11 +172,10 @@ export async function react(
167
172
'react/no-unsafe-component-will-mount' : 'warn' ,
168
173
'react/no-unsafe-component-will-receive-props' : 'warn' ,
169
174
'react/no-unsafe-component-will-update' : 'warn' ,
170
- 'react/no-unstable-context-value' : 'error ' ,
171
- 'react/no-unstable-default-props' : 'error ' ,
175
+ 'react/no-unstable-context-value' : 'warn ' ,
176
+ 'react/no-unstable-default-props' : 'warn ' ,
172
177
'react/no-unused-class-component-members' : 'warn' ,
173
178
'react/no-unused-state' : 'warn' ,
174
- 'react/no-useless-fragment' : 'warn' ,
175
179
'react/prefer-destructuring-assignment' : 'warn' ,
176
180
'react/prefer-shorthand-boolean' : 'warn' ,
177
181
'react/prefer-shorthand-fragment' : 'warn' ,
0 commit comments