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