11import type eslint from 'eslint' ;
2- import { CASE_SENSITIVE , getPackageVersion } from '@moonrepo/dev' ;
32// @ts -expect-error Not typed
43import jsxA11yPlugin from 'eslint-plugin-jsx-a11y' ;
54import reactPlugin from 'eslint-plugin-react' ;
65import reactHooksPlugin from 'eslint-plugin-react-hooks' ;
76// @ts -expect-error Not typed
87import reactPerfPlugin from 'eslint-plugin-react-perf' ;
8+ import { CASE_SENSITIVE , getPackageVersion } from '@moonrepo/dev' ;
99import browserConfig from './browser' ;
1010
1111const reactVersion = getPackageVersion ( 'react' ) ;
@@ -21,9 +21,11 @@ const reactConfig: eslint.Linter.Config = {
2121 } ,
2222 } ,
2323 plugins : {
24+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
2425 'jsx-a11y' : jsxA11yPlugin ,
2526 react : reactPlugin ,
2627 'react-hooks' : reactHooksPlugin ,
28+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
2729 'react-perf' : reactPerfPlugin ,
2830 } ,
2931 settings : {
@@ -302,7 +304,8 @@ const testsConfig: eslint.Linter.Config = {
302304// to TSX files. Not the entire codebase.
303305export default [
304306 browserConfig ,
305- jsxA11yPlugin . configs . recommended ,
307+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
308+ jsxA11yPlugin . flatConfigs . recommended ,
306309 reactConfig ,
307310 hooksConfig ,
308311 testsConfig ,
0 commit comments