33import eslint from '@eslint/js' ;
44import globals from 'globals' ;
55import prettier from 'eslint-config-prettier' ;
6- import jest from 'eslint-plugin-jest ' ;
6+ import vitest from '@vitest/ eslint-plugin' ;
77import react from 'eslint-plugin-react' ;
88import reactHooks from 'eslint-plugin-react-hooks' ;
99import reactHooksAddons from 'eslint-plugin-react-hooks-addons' ;
1010
1111export default [
1212 eslint . configs . recommended ,
1313 prettier ,
14- jest . configs [ 'flat/recommended' ] ,
15- jest . configs [ 'flat/style' ] ,
14+ vitest . configs . recommended ,
1615 react . configs . flat . recommended ,
16+ react . configs . flat [ 'jsx-runtime' ] ,
1717 reactHooksAddons . configs . recommended ,
1818 {
1919 ignores : [ '**/dist/' , '**/types/' , '**/coverage/' , '**/build/' ]
@@ -30,7 +30,7 @@ export default [
3030 globals : {
3131 ...globals . browser ,
3232 ...globals . node ,
33- ...globals . jest
33+ ...globals . vitest
3434 }
3535 } ,
3636 settings : {
@@ -39,17 +39,13 @@ export default [
3939 }
4040 } ,
4141 plugins : {
42- jest,
43- react,
4442 'react-hooks' : reactHooks
4543 } ,
4644 rules : {
4745 'no-console' : [ 'error' , { allow : [ 'warn' , 'error' ] } ] ,
48- 'react/react-in-jsx-scope' : 0 ,
4946 'react/prop-types' : 0 ,
5047 'react-hooks/rules-of-hooks' : 'error' ,
51- 'react-hooks/exhaustive-deps' : 'error' ,
52- 'react-hooks-addons/no-unused-deps' : 'error'
48+ 'react-hooks/exhaustive-deps' : 'error'
5349 }
5450 }
5551] ;
0 commit comments