@@ -6,7 +6,7 @@ module.exports = defineConfig({
6
6
root : true ,
7
7
extends : [
8
8
'eslint:recommended' ,
9
- 'plugin:node /recommended' ,
9
+ 'plugin:n /recommended' ,
10
10
'plugin:@typescript-eslint/recommended' ,
11
11
'plugin:@typescript-eslint/stylistic' ,
12
12
'plugin:regexp/recommended' ,
@@ -21,7 +21,6 @@ module.exports = defineConfig({
21
21
eqeqeq : [ 'warn' , 'always' , { null : 'never' } ] ,
22
22
'no-debugger' : [ 'error' ] ,
23
23
'no-empty' : [ 'warn' , { allowEmptyCatch : true } ] ,
24
- 'no-process-exit' : 'off' ,
25
24
'no-useless-escape' : 'off' ,
26
25
'prefer-const' : [
27
26
'warn' ,
@@ -30,37 +29,38 @@ module.exports = defineConfig({
30
29
} ,
31
30
] ,
32
31
33
- 'node/no-missing-import' : [
32
+ 'n/no-process-exit' : 'off' ,
33
+ 'n/no-missing-import' : [
34
34
'error' ,
35
35
{
36
36
allowModules : [ 'types' , 'estree' , 'less' , 'sass' , 'stylus' ] ,
37
37
tryExtensions : [ '.ts' , '.js' , '.jsx' , '.tsx' , '.d.ts' ] ,
38
38
} ,
39
39
] ,
40
- 'node /no-missing-require' : [
40
+ 'n /no-missing-require' : [
41
41
'error' ,
42
42
{
43
43
// for try-catching yarn pnp
44
44
allowModules : [ 'pnpapi' , 'vite' ] ,
45
45
tryExtensions : [ '.ts' , '.js' , '.jsx' , '.tsx' , '.d.ts' ] ,
46
46
} ,
47
47
] ,
48
- 'node /no-extraneous-import' : [
48
+ 'n /no-extraneous-import' : [
49
49
'error' ,
50
50
{
51
51
allowModules : [ 'vite' , 'less' , 'sass' , 'vitest' ] ,
52
52
} ,
53
53
] ,
54
- 'node /no-extraneous-require' : [
54
+ 'n /no-extraneous-require' : [
55
55
'error' ,
56
56
{
57
57
allowModules : [ 'vite' ] ,
58
58
} ,
59
59
] ,
60
- 'node /no-deprecated-api' : 'off' ,
61
- 'node /no-unpublished-import' : 'off' ,
62
- 'node /no-unpublished-require' : 'off' ,
63
- 'node /no-unsupported-features/es-syntax' : 'off' ,
60
+ 'n /no-deprecated-api' : 'off' ,
61
+ 'n /no-unpublished-import' : 'off' ,
62
+ 'n /no-unpublished-require' : 'off' ,
63
+ 'n /no-unsupported-features/es-syntax' : 'off' ,
64
64
65
65
'@typescript-eslint/ban-ts-comment' : 'off' , // TODO: we should turn this on in a new PR
66
66
'@typescript-eslint/ban-types' : 'off' , // TODO: we should turn this on in a new PR
@@ -119,32 +119,32 @@ module.exports = defineConfig({
119
119
{
120
120
files : [ '*.spec.ts' ] ,
121
121
rules : {
122
- 'node /no-extraneous-import' : 'off' ,
122
+ 'n /no-extraneous-import' : 'off' ,
123
123
} ,
124
124
} ,
125
125
{
126
126
files : [ '**/build.config.ts' ] ,
127
127
rules : {
128
128
'no-undef' : 'off' ,
129
- 'node /no-missing-import' : 'off' ,
129
+ 'n /no-missing-import' : 'off' ,
130
130
'@typescript-eslint/explicit-module-boundary-types' : 'off' ,
131
131
} ,
132
132
} ,
133
133
{
134
134
files : [ 'playground/**' ] ,
135
135
rules : {
136
- 'node /no-extraneous-import' : 'off' ,
137
- 'node /no-extraneous-require' : 'off' ,
138
- 'node /no-missing-import' : 'off' ,
139
- 'node /no-missing-require' : 'off' ,
136
+ 'n /no-extraneous-import' : 'off' ,
137
+ 'n /no-extraneous-require' : 'off' ,
138
+ 'n /no-missing-import' : 'off' ,
139
+ 'n /no-missing-require' : 'off' ,
140
140
// engine field doesn't exist in playgrounds
141
- 'node /no-unsupported-features/es-builtins' : [
141
+ 'n /no-unsupported-features/es-builtins' : [
142
142
'error' ,
143
143
{
144
144
version : '^18.0.0 || >=20.0.0' ,
145
145
} ,
146
146
] ,
147
- 'node /no-unsupported-features/node-builtins' : [
147
+ 'n /no-unsupported-features/node-builtins' : [
148
148
'error' ,
149
149
{
150
150
version : '^18.0.0 || >=20.0.0' ,
0 commit comments