Skip to content

Commit

Permalink
chore: replace eslint-plugin-node with eslint-plugin-n
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Oct 26, 2023
1 parent 1d5bdd1 commit e26a5a5
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 56 deletions.
12 changes: 6 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ module.exports = {
extends: [
'plugin:eslint-plugin/recommended',
'plugin:eslint-comments/recommended',
'plugin:node/recommended',
'plugin:n/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:prettier/recommended',
],
plugins: [
'eslint-plugin',
'eslint-comments',
'node',
'n',
'import',
'@typescript-eslint',
],
Expand Down Expand Up @@ -55,10 +55,10 @@ module.exports = {
'sort-imports': ['error', { ignoreDeclarationSort: true }],
'require-unicode-regexp': 'error',
// TS covers these 2
'node/no-missing-import': 'off',
'node/no-missing-require': 'off',
'node/no-unsupported-features/es-syntax': 'off',
'node/no-unsupported-features/es-builtins': 'error',
'n/no-missing-import': 'off',
'n/no-missing-require': 'off',
'n/no-unsupported-features/es-syntax': 'off',
'n/no-unsupported-features/es-builtins': 'error',
'import/no-commonjs': 'error',
'import/no-duplicates': 'error',
'import/no-extraneous-dependencies': 'error',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-eslint-plugin": "^5.0.6",
"eslint-plugin-import": "^2.25.1",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-n": "^16.2.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-remote-tester": "^3.0.0",
"eslint-remote-tester-repositories": "~1.0.0",
Expand Down
101 changes: 52 additions & 49 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1623,7 +1623,7 @@ __metadata:
languageName: node
linkType: hard

"@eslint-community/eslint-utils@npm:^4.2.0":
"@eslint-community/eslint-utils@npm:^4.1.2, @eslint-community/eslint-utils@npm:^4.2.0, @eslint-community/eslint-utils@npm:^4.4.0":
version: 4.4.0
resolution: "@eslint-community/eslint-utils@npm:4.4.0"
dependencies:
Expand All @@ -1641,6 +1641,13 @@ __metadata:
languageName: node
linkType: hard

"@eslint-community/regexpp@npm:^4.6.0":
version: 4.10.0
resolution: "@eslint-community/regexpp@npm:4.10.0"
checksum: 2a6e345429ea8382aaaf3a61f865cae16ed44d31ca917910033c02dc00d505d939f10b81e079fa14d43b51499c640138e153b7e40743c4c094d9df97d4e56f7b
languageName: node
linkType: hard

"@eslint/eslintrc@npm:^2.1.2":
version: 2.1.2
resolution: "@eslint/eslintrc@npm:2.1.2"
Expand Down Expand Up @@ -3708,7 +3715,7 @@ __metadata:
languageName: node
linkType: hard

"builtins@npm:^5.0.0":
"builtins@npm:^5.0.0, builtins@npm:^5.0.1":
version: 5.0.1
resolution: "builtins@npm:5.0.1"
dependencies:
Expand Down Expand Up @@ -4996,15 +5003,15 @@ __metadata:
languageName: node
linkType: hard

"eslint-plugin-es@npm:^3.0.0":
version: 3.0.1
resolution: "eslint-plugin-es@npm:3.0.1"
"eslint-plugin-es-x@npm:^7.1.0":
version: 7.2.0
resolution: "eslint-plugin-es-x@npm:7.2.0"
dependencies:
eslint-utils: ^2.0.0
regexpp: ^3.0.0
"@eslint-community/eslint-utils": ^4.1.2
"@eslint-community/regexpp": ^4.6.0
peerDependencies:
eslint: ">=4.19.1"
checksum: e57592c52301ee8ddc296ae44216df007f3a870bcb3be8d1fbdb909a1d3a3efe3fa3785de02066f9eba1d6466b722d3eb3cc3f8b75b3cf6a1cbded31ac6298e4
eslint: ">=8"
checksum: eece76ef6bcfce463659338b487e516e962ddf3ae34a8a65240ebd318fc991cabfe3573b1c3af5226474193b9c83f030c7900a8e5ffdbe731a3928ca8f2799c9
languageName: node
linkType: hard

Expand Down Expand Up @@ -5088,7 +5095,7 @@ __metadata:
eslint-plugin-eslint-comments: ^3.1.2
eslint-plugin-eslint-plugin: ^5.0.6
eslint-plugin-import: ^2.25.1
eslint-plugin-node: ^11.0.0
eslint-plugin-n: ^16.2.0
eslint-plugin-prettier: ^5.0.0
eslint-remote-tester: ^3.0.0
eslint-remote-tester-repositories: ~1.0.0
Expand Down Expand Up @@ -5118,19 +5125,22 @@ __metadata:
languageName: unknown
linkType: soft

"eslint-plugin-node@npm:^11.0.0":
version: 11.1.0
resolution: "eslint-plugin-node@npm:11.1.0"
"eslint-plugin-n@npm:^16.2.0":
version: 16.2.0
resolution: "eslint-plugin-n@npm:16.2.0"
dependencies:
eslint-plugin-es: ^3.0.0
eslint-utils: ^2.0.0
ignore: ^5.1.1
minimatch: ^3.0.4
resolve: ^1.10.1
semver: ^6.1.0
"@eslint-community/eslint-utils": ^4.4.0
builtins: ^5.0.1
eslint-plugin-es-x: ^7.1.0
get-tsconfig: ^4.7.0
ignore: ^5.2.4
is-core-module: ^2.12.1
minimatch: ^3.1.2
resolve: ^1.22.2
semver: ^7.5.3
peerDependencies:
eslint: ">=5.16.0"
checksum: 5804c4f8a6e721f183ef31d46fbe3b4e1265832f352810060e0502aeac7de034df83352fc88643b19641bb2163f2587f1bd4119aff0fd21e8d98c57c450e013b
eslint: ">=7.0.0"
checksum: 124ba4f418c895d81201ddc0c61cdca246c8aaa652e572653fad0dd66701aaef30598956fbe676726ab1037e600eddeaba52cd1a71b86f41e50a97f6e725055e
languageName: node
linkType: hard

Expand Down Expand Up @@ -5203,15 +5213,6 @@ __metadata:
languageName: node
linkType: hard

"eslint-utils@npm:^2.0.0":
version: 2.1.0
resolution: "eslint-utils@npm:2.1.0"
dependencies:
eslint-visitor-keys: ^1.1.0
checksum: 27500938f348da42100d9e6ad03ae29b3de19ba757ae1a7f4a087bdcf83ac60949bbb54286492ca61fac1f5f3ac8692dd21537ce6214240bf95ad0122f24d71d
languageName: node
linkType: hard

"eslint-utils@npm:^3.0.0":
version: 3.0.0
resolution: "eslint-utils@npm:3.0.0"
Expand All @@ -5223,13 +5224,6 @@ __metadata:
languageName: node
linkType: hard

"eslint-visitor-keys@npm:^1.1.0":
version: 1.3.0
resolution: "eslint-visitor-keys@npm:1.3.0"
checksum: 37a19b712f42f4c9027e8ba98c2b06031c17e0c0a4c696cd429bd9ee04eb43889c446f2cd545e1ff51bef9593fcec94ecd2c2ef89129fcbbf3adadbef520376a
languageName: node
linkType: hard

"eslint-visitor-keys@npm:^2.0.0":
version: 2.1.0
resolution: "eslint-visitor-keys@npm:2.1.0"
Expand Down Expand Up @@ -5833,6 +5827,15 @@ __metadata:
languageName: node
linkType: hard

"get-tsconfig@npm:^4.7.0":
version: 4.7.2
resolution: "get-tsconfig@npm:4.7.2"
dependencies:
resolve-pkg-maps: ^1.0.0
checksum: 172358903250eff0103943f816e8a4e51d29b8e5449058bdf7266714a908a48239f6884308bd3a6ff28b09f692b9533dbebfd183ab63e4e14f073cda91f1bca9
languageName: node
linkType: hard

"git-log-parser@npm:^1.2.0":
version: 1.2.0
resolution: "git-log-parser@npm:1.2.0"
Expand Down Expand Up @@ -6273,7 +6276,7 @@ __metadata:
languageName: node
linkType: hard

"ignore@npm:^5.0.5, ignore@npm:^5.1.1, ignore@npm:^5.2.0, ignore@npm:^5.2.4":
"ignore@npm:^5.0.5, ignore@npm:^5.2.0, ignore@npm:^5.2.4":
version: 5.2.4
resolution: "ignore@npm:5.2.4"
checksum: 3d4c309c6006e2621659311783eaea7ebcd41fe4ca1d78c91c473157ad6666a57a2df790fe0d07a12300d9aac2888204d7be8d59f9aaf665b1c7fcdb432517ef
Expand Down Expand Up @@ -6539,7 +6542,7 @@ __metadata:
languageName: node
linkType: hard

"is-core-module@npm:^2.13.0, is-core-module@npm:^2.5.0, is-core-module@npm:^2.8.1":
"is-core-module@npm:^2.12.1, is-core-module@npm:^2.13.0, is-core-module@npm:^2.5.0, is-core-module@npm:^2.8.1":
version: 2.13.1
resolution: "is-core-module@npm:2.13.1"
dependencies:
Expand Down Expand Up @@ -9776,13 +9779,6 @@ __metadata:
languageName: node
linkType: hard

"regexpp@npm:^3.0.0":
version: 3.2.0
resolution: "regexpp@npm:3.2.0"
checksum: a78dc5c7158ad9ddcfe01aa9144f46e192ddbfa7b263895a70a5c6c73edd9ce85faf7c0430e59ac38839e1734e275b9c3de5c57ee3ab6edc0e0b1bdebefccef8
languageName: node
linkType: hard

"regexpu-core@npm:^5.3.1":
version: 5.3.2
resolution: "regexpu-core@npm:5.3.2"
Expand Down Expand Up @@ -9863,14 +9859,21 @@ __metadata:
languageName: node
linkType: hard

"resolve-pkg-maps@npm:^1.0.0":
version: 1.0.0
resolution: "resolve-pkg-maps@npm:1.0.0"
checksum: 1012afc566b3fdb190a6309cc37ef3b2dcc35dff5fa6683a9d00cd25c3247edfbc4691b91078c97adc82a29b77a2660c30d791d65dab4fc78bfc473f60289977
languageName: node
linkType: hard

"resolve.exports@npm:^2.0.0":
version: 2.0.2
resolution: "resolve.exports@npm:2.0.2"
checksum: 1c7778ca1b86a94f8ab4055d196c7d87d1874b96df4d7c3e67bbf793140f0717fd506dcafd62785b079cd6086b9264424ad634fb904409764c3509c3df1653f2
languageName: node
linkType: hard

"resolve@npm:^1.10.0, resolve@npm:^1.10.1, resolve@npm:^1.14.2, resolve@npm:^1.20.0, resolve@npm:^1.22.4":
"resolve@npm:^1.10.0, resolve@npm:^1.14.2, resolve@npm:^1.20.0, resolve@npm:^1.22.2, resolve@npm:^1.22.4":
version: 1.22.8
resolution: "resolve@npm:1.22.8"
dependencies:
Expand All @@ -9883,7 +9886,7 @@ __metadata:
languageName: node
linkType: hard

"resolve@patch:resolve@^1.10.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.10.1#~builtin<compat/resolve>, resolve@patch:resolve@^1.14.2#~builtin<compat/resolve>, resolve@patch:resolve@^1.20.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.22.4#~builtin<compat/resolve>":
"resolve@patch:resolve@^1.10.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.14.2#~builtin<compat/resolve>, resolve@patch:resolve@^1.20.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.22.2#~builtin<compat/resolve>, resolve@patch:resolve@^1.22.4#~builtin<compat/resolve>":
version: 1.22.8
resolution: "resolve@patch:resolve@npm%3A1.22.8#~builtin<compat/resolve>::version=1.22.8&hash=c3c19d"
dependencies:
Expand Down Expand Up @@ -10112,7 +10115,7 @@ __metadata:
languageName: node
linkType: hard

"semver@npm:^6.1.0, semver@npm:^6.3.0, semver@npm:^6.3.1":
"semver@npm:^6.3.0, semver@npm:^6.3.1":
version: 6.3.1
resolution: "semver@npm:6.3.1"
bin:
Expand Down

0 comments on commit e26a5a5

Please sign in to comment.