@@ -19,15 +19,12 @@ export default tseslint.config(
1919 importPlugin . flatConfigs . warnings ,
2020 importPlugin . flatConfigs . typescript ,
2121 /* eslint-enable @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access */
22- // @ts -expect-error react has a type error
23- react . configs . flat ?. recommended ,
22+ react . configs . flat . recommended ,
2423
2524 {
2625 plugins : {
2726 'jsx-a11y' : jsxA11y ,
28- /* eslint-disable @typescript-eslint/no-unsafe-argument */
2927 'react-hooks' : fixupPluginRules ( reactHooks ) ,
30- /* eslint-enable @typescript-eslint/no-unsafe-argument */
3128 } ,
3229
3330 languageOptions : {
@@ -107,7 +104,7 @@ export default tseslint.config(
107104 'no-this-before-super' : 'warn' ,
108105 'no-throw-literal' : 'warn' ,
109106 'no-undef' : 'off' ,
110- 'no-restricted-globals' : [ 'error' ] . concat ( restrictedGlobals ) ,
107+ 'no-restricted-globals' : [ 'error' , ... restrictedGlobals ] ,
111108 'no-unreachable' : 'warn' ,
112109 'no-unused-labels' : 'warn' ,
113110 'no-useless-computed-key' : 'warn' ,
0 commit comments