@@ -166,11 +166,11 @@ export async function react(
166166 'react-web-api/no-leaked-resize-observer' : 'warn' ,
167167 'react-web-api/no-leaked-timeout' : 'warn' ,
168168
169- // recommended rules from eslint-plugin-react https://eslint-react.xyz/docs/rules/overview#core-rules
170- 'react/jsx-no-duplicate-props ' : 'off ' ,
171- 'react/jsx-no-undef ' : 'off ' ,
172- 'react/jsx-uses-react' : 'off ' ,
173- 'react/jsx-uses-vars' : 'off ' ,
169+ // recommended rules from eslint-plugin-react-x https://eslint-react.xyz/docs/rules/overview#core-rules
170+ 'react/jsx-no-comment-textnodes ' : 'warn ' ,
171+ 'react/jsx-no-duplicate-props ' : 'warn ' ,
172+ 'react/jsx-uses-react' : 'warn ' ,
173+ 'react/jsx-uses-vars' : 'warn ' ,
174174 'react/no-access-state-in-setstate' : 'error' ,
175175 'react/no-array-index-key' : 'warn' ,
176176 'react/no-children-count' : 'warn' ,
@@ -179,7 +179,6 @@ export async function react(
179179 'react/no-children-only' : 'warn' ,
180180 'react/no-children-to-array' : 'warn' ,
181181 'react/no-clone-element' : 'warn' ,
182- 'react/no-comment-textnodes' : 'warn' ,
183182 'react/no-component-will-mount' : 'error' ,
184183 'react/no-component-will-receive-props' : 'error' ,
185184 'react/no-component-will-update' : 'error' ,
@@ -190,9 +189,7 @@ export async function react(
190189 'react/no-duplicate-key' : 'warn' ,
191190 'react/no-forward-ref' : 'warn' ,
192191 'react/no-implicit-key' : 'warn' ,
193- // 'react/no-leaked-conditional-rendering': 'warn', // deactivated because it is not working (parserOptions issue)
194192 'react/no-missing-key' : 'error' ,
195- 'react/no-misused-capture-owner-stack' : 'error' ,
196193 'react/no-nested-component-definitions' : 'error' ,
197194 'react/no-nested-lazy-component-declarations' : 'warn' ,
198195 'react/no-prop-types' : 'error' ,
0 commit comments