File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { fileURLToPath } from "node:url";
55
66import confusingBrowserGlobals from "confusing-browser-globals" ;
77
8+ import { defineConfig } from "eslint/config" ;
89import js from "@eslint/js" ;
910import { fixupConfigRules , fixupPluginRules } from "@eslint/compat" ;
1011import { FlatCompat } from "@eslint/eslintrc" ;
@@ -18,21 +19,17 @@ const compat = new FlatCompat({
1819 baseDirectory : path . dirname ( fileURLToPath ( import . meta. url ) ) ,
1920} ) ;
2021
21- export default tseslint . config (
22+ export default defineConfig (
2223 {
2324 ignores : [ "dist/**/*" ] ,
2425 } ,
2526
2627 js . configs . recommended ,
2728
28- // @ts -expect-error
2929 react . configs . flat . recommended ,
3030 { settings : { react : { version : "detect" } } } ,
3131
32- {
33- plugins : { "react-hooks" : reactHooks } ,
34- rules : reactHooks . configs . recommended . rules ,
35- } ,
32+ reactHooks . configs . flat . recommended ,
3633
3734 ...tseslint . configs . recommended . map ( ( config ) => ( {
3835 files : [ "**/*.ts?(x)" ] ,
You can’t perform that action at this time.
0 commit comments