@@ -3,7 +3,6 @@ import vitest from '@vitest/eslint-plugin'
33import importPlugin from 'eslint-plugin-import'
44import jestDom from 'eslint-plugin-jest-dom'
55import react from 'eslint-plugin-react'
6- import reactCompiler from 'eslint-plugin-react-compiler'
76import reactHooks from 'eslint-plugin-react-hooks'
87import testingLibrary from 'eslint-plugin-testing-library'
98import tseslint from 'typescript-eslint'
@@ -17,8 +16,7 @@ export default tseslint.config(
1716 tseslint . configs . recommended ,
1817 react . configs . flat . recommended ,
1918 react . configs . flat [ 'jsx-runtime' ] ,
20- reactHooks . configs [ 'recommended-latest' ] ,
21- reactCompiler . configs . recommended ,
19+ reactHooks . configs . recommended ,
2220 {
2321 settings : {
2422 react : {
@@ -42,7 +40,7 @@ export default tseslint.config(
4240 'import/namespace' : 'off' ,
4341 'import/no-named-as-default-member' : 'off' ,
4442 'import/no-duplicates' : 'error' ,
45- 'import/extensions' : [ 'error' , 'always' ] ,
43+ 'import/extensions' : [ 'error' , 'always' , { ignorePackages : true } ] ,
4644 'import/order' : [
4745 'error' ,
4846 {
@@ -72,6 +70,7 @@ export default tseslint.config(
7270 'warn' ,
7371 { argsIgnorePattern : '^_' , varsIgnorePattern : '^_' } ,
7472 ] ,
73+ 'react-hooks/react-compiler' : 'error' ,
7574 } ,
7675 } ,
7776 {
@@ -90,10 +89,4 @@ export default tseslint.config(
9089 ] ,
9190 } ,
9291 } ,
93- {
94- files : [ '*.js' ] ,
95- rules : {
96- '@typescript-eslint/no-require-imports' : 'off' ,
97- } ,
98- } ,
9992)
0 commit comments