@@ -3,9 +3,9 @@ import globals from "globals";
33
44import tseslint from "typescript-eslint" ;
55import eslintConfigPrettier from "eslint-config-prettier" ;
6- import reactHooks from "eslint-plugin-react-hooks" ;
6+ // import reactHooks from "eslint-plugin-react-hooks";
77import vitest from "@vitest/eslint-plugin" ;
8- import reactRefresh from "eslint-plugin-react-refresh" ;
8+ import { reactRefresh } from "eslint-plugin-react-refresh" ;
99
1010import { includeIgnoreFile } from "@eslint/compat" ;
1111import { defineConfig } from "eslint/config" ;
@@ -15,21 +15,20 @@ const gitignorePath = fileURLToPath(new URL(".gitignore", import.meta.url));
1515
1616export default defineConfig (
1717 includeIgnoreFile ( gitignorePath ) ,
18+ js . configs . recommended ,
19+ tseslint . configs . strictTypeChecked ,
20+ tseslint . configs . stylisticTypeChecked ,
21+ // reactHooks.configs.flat.recommended,
22+ reactRefresh . configs . vite ( ) ,
23+ eslintConfigPrettier ,
1824 {
19- extends : [
20- js . configs . recommended ,
21- tseslint . configs . strictTypeChecked ,
22- tseslint . configs . stylisticTypeChecked ,
23- // reactHooks.configs.flat.recommended,
24- reactRefresh . configs . vite ,
25- eslintConfigPrettier ,
26- ] ,
27- files : [ "src/**" , "tests/**" ] ,
2825 languageOptions : {
2926 ecmaVersion : 2022 ,
3027 globals : globals . browser ,
3128 parserOptions : {
32- projectService : true ,
29+ projectService : {
30+ allowDefaultProject : [ "*.js" ] ,
31+ } ,
3332 tsconfigRootDir : import . meta. dirname ,
3433 } ,
3534 } ,
@@ -52,7 +51,7 @@ export default defineConfig(
5251 } ,
5352 } ,
5453 {
55- files : [ "tests/**" ] , // or any other pattern
54+ files : [ "tests/**" ] ,
5655 plugins : {
5756 vitest,
5857 } ,
0 commit comments