Skip to content

Commit

Permalink
fix: replace eslint-plugin-node by eslint-plugin-n
Browse files Browse the repository at this point in the history
  • Loading branch information
foray1010 committed Jun 13, 2022
1 parent 10af81b commit 764320c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 23 deletions.
2 changes: 1 addition & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"eslint-plugin-jest": "^26.0.0",
"eslint-plugin-jest-dom": "^4.0.0",
"eslint-plugin-jsdoc": "^39.0.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-n": "^15.2.2",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.23.2",
"eslint-plugin-react-hooks": "^4.2.0",
Expand Down
14 changes: 7 additions & 7 deletions packages/eslint-config/presets/node.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
'use strict'

module.exports = {
plugins: ['eslint-plugin-node'],
plugins: ['eslint-plugin-n'],
env: {
node: true,
},
rules: {
// disallow deprecated node APIs
'node/no-deprecated-api': 'error',
'n/no-deprecated-api': 'error',
// disallow the assignment to `exports`
'node/no-exports-assign': 'error',
'n/no-exports-assign': 'error',
// disallow `bin` files that npm ignores
'node/no-unpublished-bin': 'error',
'n/no-unpublished-bin': 'error',
// disallow unsupported Node.js built-in APIs on the specified version
'node/no-unsupported-features/node-builtins': 'error',
'n/no-unsupported-features/node-builtins': 'error',
// make `process.exit()` expressions the same code path as `throw`
'node/process-exit-as-throw': 'error',
'n/process-exit-as-throw': 'error',
// enforce shebang on the entry bin file
'node/shebang': 'error',
'n/shebang': 'error',
},
}
32 changes: 17 additions & 15 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2874,7 +2874,7 @@ builtins@^4.0.0:
dependencies:
semver "^7.0.0"

builtins@^5.0.0:
builtins@^5.0.0, builtins@^5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/builtins/-/builtins-5.0.1.tgz#87f6db9ab0458be728564fa81d876d8d74552fa9"
integrity sha512-qwVpFEHNfhYJIzNRBvd2C1kyo6jz3ZSMPyyuR47OPdiKWlbYnZNyDWuyR175qDnAJLiCo5fBBqPb3RiXgWlkOQ==
Expand Down Expand Up @@ -3809,10 +3809,10 @@ eslint-plugin-compat@^4.0.0:
lodash.memoize "4.1.2"
semver "7.3.5"

eslint-plugin-es@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-es/-/eslint-plugin-es-3.0.1.tgz#75a7cdfdccddc0589934aeeb384175f221c57893"
integrity sha512-GUmAsJaN4Fc7Gbtl8uOBlayo2DqhwWvEzykMHSCZHU3XdJ+NSzzZcVhXh3VxX5icqQ+oQdIEawXX8xkR3mIFmQ==
eslint-plugin-es@^4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-es/-/eslint-plugin-es-4.1.0.tgz#f0822f0c18a535a97c3e714e89f88586a7641ec9"
integrity sha512-GILhQTnjYE2WorX5Jyi5i4dz5ALWxBIdQECVQavL6s7cI76IZTDWleTHkxz/QT3kvcs2QlGHvKLYsSlPOlPXnQ==
dependencies:
eslint-utils "^2.0.0"
regexpp "^3.0.0"
Expand Down Expand Up @@ -3873,17 +3873,19 @@ eslint-plugin-jsdoc@^39.0.0:
semver "^7.3.7"
spdx-expression-parse "^3.0.1"

eslint-plugin-node@^11.1.0:
version "11.1.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-node/-/eslint-plugin-node-11.1.0.tgz#c95544416ee4ada26740a30474eefc5402dc671d"
integrity sha512-oUwtPJ1W0SKD0Tr+wqu92c5xuCeQqB3hSCHasn/ZgjFdA9iDGNkNf2Zi9ztY7X+hNuMib23LNGRm6+uN+KLE3g==
eslint-plugin-n@^15.2.2:
version "15.2.2"
resolved "https://registry.yarnpkg.com/eslint-plugin-n/-/eslint-plugin-n-15.2.2.tgz#1ea682e57871c5ce6ba04c36e71df38466b68d34"
integrity sha512-MLjZVAv4TiCIoXqjibNqCJjLkGHfrOY3XZ0ZBLoW0OnS3o98PUBnzB/kfp8dCz/4A4Y18jjX50PRnqI4ACFY1Q==
dependencies:
eslint-plugin-es "^3.0.0"
eslint-utils "^2.0.0"
builtins "^5.0.1"
eslint-plugin-es "^4.1.0"
eslint-utils "^3.0.0"
ignore "^5.1.1"
minimatch "^3.0.4"
is-core-module "^2.9.0"
minimatch "^3.1.2"
resolve "^1.10.1"
semver "^6.1.0"
semver "^7.3.7"

eslint-plugin-prettier@^4.0.0:
version "4.0.0"
Expand Down Expand Up @@ -4911,7 +4913,7 @@ is-ci@^2.0.0:
dependencies:
ci-info "^2.0.0"

is-core-module@^2.2.0, is-core-module@^2.5.0, is-core-module@^2.8.1:
is-core-module@^2.2.0, is-core-module@^2.5.0, is-core-module@^2.8.1, is-core-module@^2.9.0:
version "2.9.0"
resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.9.0.tgz#e1c34429cd51c6dd9e09e0799e396e27b19a9c69"
integrity sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==
Expand Down Expand Up @@ -8319,7 +8321,7 @@ semver@7.3.7, semver@^7.0.0, semver@^7.1.1, semver@^7.1.3, semver@^7.3.4, semver
dependencies:
lru-cache "^6.0.0"

semver@^6.0.0, semver@^6.1.0, semver@^6.1.1, semver@^6.1.2, semver@^6.3.0:
semver@^6.0.0, semver@^6.1.1, semver@^6.1.2, semver@^6.3.0:
version "6.3.0"
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d"
integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==
Expand Down

0 comments on commit 764320c

Please sign in to comment.