File tree 3 files changed +9
-13
lines changed
3 files changed +9
-13
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = {
2
- extends : [ 'eslint:recommended' , 'plugin:node /recommended' ] ,
3
- plugins : [ 'node ' ] ,
2
+ extends : [ 'eslint:recommended' , 'plugin:n /recommended' ] ,
3
+ plugins : [ 'n ' ] ,
4
4
rules : {
5
5
// override recommended
6
6
'no-empty' : [ 'error' , { allowEmptyCatch : true } ] ,
@@ -132,10 +132,6 @@ module.exports = {
132
132
'rest-spread-spacing' : 'error' ,
133
133
'template-curly-spacing' : 'error' ,
134
134
'yield-star-spacing' : 'error' ,
135
- // Node 8 compatibility
136
- 'node/no-deprecated-api' : [ 'error' , {
137
- 'ignoreModuleItems' : [ 'url.parse' , 'url.resolve' ]
138
- } ]
139
135
} ,
140
136
env : {
141
137
node : true ,
Original file line number Diff line number Diff line change 21
21
],
22
22
"license" : " MIT" ,
23
23
"peerDependencies" : {
24
- "eslint" : " >= 8.1 .0"
24
+ "eslint" : " >= 8.23 .0"
25
25
},
26
26
"dependencies" : {
27
- "eslint-plugin-node " : " ^11.1 .0" ,
28
- "@typescript-eslint/eslint-plugin" : " ^5.7 .0" ,
29
- "@typescript-eslint/parser" : " ^5.7 .0"
27
+ "eslint-plugin-n " : " ^17.9 .0" ,
28
+ "@typescript-eslint/eslint-plugin" : " ^7.15 .0" ,
29
+ "@typescript-eslint/parser" : " ^7.15 .0"
30
30
},
31
31
"engines" : {
32
- "node" : " >=12.22.0 "
32
+ "node" : " >=18 "
33
33
}
34
34
}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ module.exports = {
6
6
'plugin:@typescript-eslint/recommended'
7
7
] ,
8
8
rules : {
9
- 'node /no-unsupported-features/es-syntax' : [ 'error' , { 'ignores' : [ 'modules' ] } ] ,
10
- 'node /no-missing-import' : [ 'error' , { 'tryExtensions' : [ '.js' , '.ts' ] } ]
9
+ 'n /no-unsupported-features/es-syntax' : [ 'error' , { 'ignores' : [ 'modules' ] } ] ,
10
+ 'n /no-missing-import' : [ 'error' , { 'tryExtensions' : [ '.js' , '.ts' ] } ]
11
11
}
12
12
} ;
You can’t perform that action at this time.
0 commit comments