Skip to content

Commit efbe3a8

Browse files
authoredMar 26, 2024··
fix(deps): replace dependency eslint-plugin-node with eslint-plugin-n (#865)
1 parent 0bd8195 commit efbe3a8

File tree

6 files changed

+381
-322
lines changed

6 files changed

+381
-322
lines changed
 

‎.eslintrc.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"extends": [
33
"eslint:recommended",
4-
"plugin:node/recommended",
4+
"plugin:n/recommended",
55
"prettier"
66
],
77
"plugins": [
8-
"node",
8+
"n",
99
"prettier"
1010
],
1111
"rules": {
@@ -48,11 +48,11 @@
4848
"@typescript-eslint/explicit-module-boundary-types": "off",
4949
"@typescript-eslint/ban-types": "off",
5050
"@typescript-eslint/camelcase": "off",
51-
"node/no-missing-import": "off",
52-
"node/no-empty-function": "off",
53-
"node/no-unsupported-features/es-syntax": "off",
54-
"node/no-missing-require": "off",
55-
"node/shebang": "off",
51+
"n/no-missing-import": "off",
52+
"n/no-empty-function": "off",
53+
"n/no-unsupported-features/es-syntax": "off",
54+
"n/no-missing-require": "off",
55+
"n/shebang": "off",
5656
"no-dupe-class-members": "off",
5757
"require-atomic-updates": "off"
5858
},

‎package-lock.json

+368-309
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"chalk": "^4.1.2",
4444
"eslint": "8.57.0",
4545
"eslint-config-prettier": "9.1.0",
46-
"eslint-plugin-node": "11.1.0",
46+
"eslint-plugin-n": "15.7.0",
4747
"eslint-plugin-prettier": "5.1.3",
4848
"execa": "^5.0.0",
4949
"inquirer": "^7.3.3",
@@ -76,7 +76,7 @@
7676
"mocha": "^10.0.0",
7777
"sinon": "^17.0.0",
7878
"tmp": "0.2.3",
79-
"typescript": "~5.4.3"
79+
"typescript": "^5.4.3"
8080
},
8181
"peerDependencies": {
8282
"typescript": ">=3"

‎src/cli.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ if (cli.input.length < 1) {
171171

172172
run(cli.input[0], cli.input.slice(1)).then(success => {
173173
if (!success) {
174-
// eslint-disable-next-line no-process-exit
174+
// eslint-disable-next-line n/no-process-exit
175175
process.exit(1);
176176
}
177177
});

‎test/fixtures/kitchen/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "kitchen",
33
"version": "1.0.0",
44
"devDependencies": {
5-
"typescript": "^4.0.3",
5+
"typescript": "^5.4.3",
66
"gts": "file:../gts.tgz"
77
}
88
}

‎test/test-util.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ describe('util', () => {
7878
myMap.set(PATH_TO_CONFIG2, FAKE_CONFIG2);
7979
myMap.set(PATH_TO_CONFIG3, FAKE_CONFIG3);
8080

81-
// eslint-disable-next-line node/no-unsupported-features/node-builtins
81+
// eslint-disable-next-line n/no-unsupported-features/node-builtins
8282
return assert.rejects(
8383
() => getTSConfig(FAKE_DIRECTORY, createFakeReadFilep(myMap)),
8484
Error,
@@ -158,7 +158,7 @@ describe('util', () => {
158158
it('function throws an error when reading a file that does not exist', () => {
159159
const myMap = new Map();
160160

161-
// eslint-disable-next-line node/no-unsupported-features/node-builtins
161+
// eslint-disable-next-line n/no-unsupported-features/node-builtins
162162
return assert.rejects(
163163
() => getTSConfig(FAKE_DIRECTORY, createFakeReadFilep(myMap)),
164164
Error,

0 commit comments

Comments
 (0)
Please sign in to comment.