Skip to content

Commit 90c1854

Browse files
authored
chore: require node.js18+, replace eslint-plugin-node and update dependencies (#54)
1 parent de33316 commit 90c1854

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

eslint.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
2-
extends: ['eslint:recommended', 'plugin:node/recommended'],
3-
plugins: ['node'],
2+
extends: ['eslint:recommended', 'plugin:n/recommended'],
3+
plugins: ['n'],
44
rules: {
55
// override recommended
66
'no-empty': ['error', { allowEmptyCatch: true }],
@@ -132,10 +132,6 @@ module.exports = {
132132
'rest-spread-spacing': 'error',
133133
'template-curly-spacing': 'error',
134134
'yield-star-spacing': 'error',
135-
// Node 8 compatibility
136-
'node/no-deprecated-api': ['error', {
137-
'ignoreModuleItems': ['url.parse', 'url.resolve']
138-
}]
139135
},
140136
env: {
141137
node: true,

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
2121
],
2222
"license": "MIT",
2323
"peerDependencies": {
24-
"eslint": ">= 8.1.0"
24+
"eslint": ">= 8.23.0"
2525
},
2626
"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"
3030
},
3131
"engines": {
32-
"node": ">=12.22.0"
32+
"node": ">=18"
3333
}
3434
}

ts.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
'plugin:@typescript-eslint/recommended'
77
],
88
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'] }]
1111
}
1212
};

0 commit comments

Comments
 (0)