@@ -5,6 +5,7 @@ import globals from 'globals';
55import tseslint from 'typescript-eslint' ;
66import reactPerfPlugin from 'eslint-plugin-react-perf' ;
77import jsxA11y from 'eslint-plugin-jsx-a11y' ;
8+ import eslintReact from '@eslint-react/eslint-plugin' ;
89
910export default [
1011 {
@@ -28,6 +29,7 @@ export default [
2829 vitestPlugin . configs . recommended ,
2930 reactPerfPlugin . configs . flat . recommended ,
3031 jsxA11y . flatConfigs . recommended ,
32+ eslintReact . configs [ 'recommended-typescript' ] ,
3133 {
3234 languageOptions : {
3335 globals : globals . browser ,
@@ -43,14 +45,24 @@ export default [
4345 '@typescript-eslint/no-non-null-assertion' : 'off' ,
4446 '@typescript-eslint/no-empty-function' : 'off' ,
4547 '@typescript-eslint/no-dynamic-delete' : 'off' ,
46- '@typescript-eslint/prefer-for-of' : 'off' ,
4748 'react-perf/jsx-no-new-array-as-prop' : 'off' ,
4849 'react-perf/jsx-no-new-function-as-prop' : 'off' ,
4950 'react-perf/jsx-no-new-object-as-prop' : 'off' ,
5051 'jsx-a11y/no-autofocus' : 'off' ,
5152 'jsx-a11y/click-events-have-key-events' : 'off' ,
5253 'jsx-a11y/no-noninteractive-element-interactions' : 'off' ,
5354 'jsx-a11y/no-static-element-interactions' : 'off' ,
55+ '@eslint-react/no-array-index-key' : 'off' ,
56+ '@eslint-react/hooks-extra/no-direct-set-state-in-use-effect' : 'off' ,
57+ '@eslint-react/dom/no-dangerously-set-innerhtml' : 'off' ,
58+ '@eslint-react/no-component-will-receive-props' : 'off' ,
59+ '@eslint-react/no-unstable-default-props' : 'off' ,
60+ '@eslint-react/hooks-extra/no-unnecessary-use-prefix' : 'off' ,
61+ '@eslint-react/no-unstable-context-value' : 'off' ,
62+ '@eslint-react/no-unused-class-component-members' : 'off' ,
63+ '@eslint-react/no-nested-component-definitions' : 'off' ,
64+ '@eslint-react/no-duplicate-key' : 'off' ,
65+ '@eslint-react/web-api/no-leaked-interval' : 'off' ,
5466 // Final valid rules
5567 'vitest/expect-expect' : 'off' ,
5668 'vitest/valid-title' : [
0 commit comments