Skip to content

Commit

Permalink
fix(deps): replace dependency eslint-plugin-node with eslint-plugin-n
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycoco committed Mar 22, 2024
1 parent 2c248d3 commit 8f96d11
Show file tree
Hide file tree
Showing 5 changed files with 116 additions and 74 deletions.
14 changes: 7 additions & 7 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"extends": [
"eslint:recommended",
"plugin:node/recommended",
"plugin:n/recommended",
"prettier"
],
"plugins": [
"node",
"n",
"prettier"
],
"rules": {
Expand Down Expand Up @@ -48,11 +48,11 @@
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/camelcase": "off",
"node/no-missing-import": "off",
"node/no-empty-function": "off",
"node/no-unsupported-features/es-syntax": "off",
"node/no-missing-require": "off",
"node/shebang": "off",
"n/no-missing-import": "off",
"n/no-empty-function": "off",
"n/no-unsupported-features/es-syntax": "off",
"n/no-missing-require": "off",
"n/shebang": "off",
"no-dupe-class-members": "off",
"require-atomic-updates": "off"
},
Expand Down
166 changes: 104 additions & 62 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@
"@typescript-eslint/eslint-plugin": "5.62.0",
"@typescript-eslint/parser": "5.62.0",
"chalk": "^4.1.2",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-prettier": "5.1.3",
"execa": "^5.0.0",
"inquirer": "^7.3.3",
Expand Down Expand Up @@ -76,6 +74,8 @@
"@types/write-file-atomic": "^4.0.0",
"c8": "^9.0.0",
"cross-spawn": "^7.0.3",
"eslint": "^8.57.0",
"eslint-plugin-n": "^16.6.2",
"fs-extra": "^11.0.0",
"inline-fixtures": "^1.1.0",
"js-green-licenses": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ if (cli.input.length < 1) {

run(cli.input[0], cli.input.slice(1)).then(success => {
if (!success) {
// eslint-disable-next-line no-process-exit
// eslint-disable-next-line n/no-process-exit
process.exit(1);
}
});
4 changes: 2 additions & 2 deletions test/test-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ describe('util', () => {
myMap.set(PATH_TO_CONFIG2, FAKE_CONFIG2);
myMap.set(PATH_TO_CONFIG3, FAKE_CONFIG3);

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

// eslint-disable-next-line node/no-unsupported-features/node-builtins
// eslint-disable-next-line n/no-unsupported-features/node-builtins
return assert.rejects(
() => getTSConfig(FAKE_DIRECTORY, createFakeReadFilep(myMap)),
Error,
Expand Down

0 comments on commit 8f96d11

Please sign in to comment.