File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 44
44
"no-undef" : " off" ,
45
45
"no-empty" : " off" ,
46
46
"react/display-name" : " off" ,
47
+ "react-hooks/exhaustive-deps" : " error" ,
47
48
"@typescript-eslint/ban-ts-comment" : " off" ,
48
49
"no-async-promise-executor" : " off"
49
50
},
Original file line number Diff line number Diff line change 1
1
import { defineConfig } from 'vite' ;
2
2
import react from '@vitejs/plugin-react' ;
3
3
import checker from 'vite-plugin-checker' ;
4
+ import eslint from 'vite-plugin-eslint' ;
4
5
import tsconfigPaths from 'vite-tsconfig-paths' ;
5
6
6
7
export default defineConfig ( ( env ) => {
@@ -18,7 +19,8 @@ export default defineConfig((env) => {
18
19
checker ( {
19
20
typescript : true ,
20
21
} ) ,
21
- tsconfigPaths ( )
22
+ tsconfigPaths ( ) ,
23
+ env . mode !== 'test' && eslint ( ) ,
22
24
] ,
23
25
test : {
24
26
css : false ,
You can’t perform that action at this time.
0 commit comments