@@ -16,7 +16,6 @@ import tseslint from "typescript-eslint";
16
16
type FlatConfig = Parameters < typeof tseslint . config > [ number ] ;
17
17
const dirname = url . fileURLToPath ( new URL ( "." , import . meta. url ) ) ;
18
18
const config : FlatConfig [ ] = [
19
- // register all of the plugins up-front
20
19
gitignore ( ) ,
21
20
{
22
21
ignores : [
@@ -28,6 +27,7 @@ const config: FlatConfig[] = [
28
27
] ,
29
28
} ,
30
29
{
30
+ // register all of the plugins up-front
31
31
// note - intentionally uses computed syntax to make it easy to sort the keys
32
32
plugins : {
33
33
[ "@typescript-eslint" ] : tseslint . plugin ,
@@ -39,6 +39,12 @@ const config: FlatConfig[] = [
39
39
[ "simple-import-sort" ] : simpleImportSortPlugin ,
40
40
[ "unicorn" ] : unicornPlugin ,
41
41
} ,
42
+ settings : {
43
+ "import-x/parsers" : {
44
+ "@typescript-eslint/parser" : [ ".ts" , ".tsx" , ".cts" , ".mts" ] ,
45
+ } ,
46
+ "import-x/resolver" : "oxc" ,
47
+ } ,
42
48
} ,
43
49
// extends ...
44
50
eslint . configs . recommended ,
@@ -130,15 +136,13 @@ const config: FlatConfig[] = [
130
136
"import-x/consistent-type-specifier-style" : "warn" ,
131
137
"import-x/export" : "error" ,
132
138
"import-x/first" : "warn" ,
133
- "import-x/named" : "off" ,
134
139
"import-x/newline-after-import" : "warn" ,
135
140
"import-x/no-absolute-path" : "error" ,
136
- "import-x/no-cycle" : "off" ,
137
141
"import-x/no-duplicates" : "error" ,
138
142
"import-x/no-dynamic-require" : "error" ,
139
143
"import-x/no-empty-named-blocks" : "error" ,
140
144
"import-x/no-mutable-exports" : "error" ,
141
- "import-x/no-self-import" : "off " ,
145
+ "import-x/no-self-import" : "error " ,
142
146
"import-x/no-unused-modules" : "error" ,
143
147
// Part: simple-import-sort rules
144
148
"simple-import-sort/exports" : "warn" ,
0 commit comments