1
1
import { type ESLint } from "eslint" ;
2
2
3
- import { GLOB_MJS , GLOB_TS } from "../globs" ;
3
+ import { GLOB_DTS , GLOB_MJS , GLOB_TS , GLOB_TSX } from "../globs" ;
4
4
import { type FlatConfigItem } from "../types" ;
5
5
import { loadPackages } from "../utils" ;
6
6
@@ -60,7 +60,6 @@ export async function node(): Promise<FlatConfigItem[]> {
60
60
] ,
61
61
"node/no-sync" : "error" ,
62
62
"node/no-unpublished-import" : "warn" ,
63
- "node/no-unsupported-features/es-syntax" : "off" ,
64
63
"node/prefer-global/buffer" : [ "error" , "never" ] ,
65
64
"node/prefer-global/console" : [ "error" , "always" ] ,
66
65
"node/prefer-global/process" : [ "error" , "always" ] ,
@@ -73,10 +72,19 @@ export async function node(): Promise<FlatConfigItem[]> {
73
72
} ,
74
73
} ,
75
74
{
76
- files : [ GLOB_TS , GLOB_MJS ] ,
75
+ files : [ GLOB_TS , GLOB_TSX , GLOB_DTS , GLOB_MJS ] ,
77
76
rules : {
78
77
"node/no-unsupported-features/es-syntax" : "off" ,
79
78
} ,
80
79
} ,
80
+ {
81
+ files : [ GLOB_TS , GLOB_TSX , GLOB_DTS ] ,
82
+ rules : {
83
+ "node/no-extraneous-import" : "off" ,
84
+ "node/no-missing-import" : "off" ,
85
+ "node/no-restricted-import" : "off" ,
86
+ "node/no-restricted-require" : "off" ,
87
+ } ,
88
+ } ,
81
89
] ;
82
90
}
0 commit comments