eslint-plugin-node
Advanced tools
Comparing version 9.0.0 to 9.0.1
@@ -149,3 +149,3 @@ /** | ||
url: | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.0/docs/rules/exports-style.md", | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.1/docs/rules/exports-style.md", | ||
}, | ||
@@ -152,0 +152,0 @@ type: "suggestion", |
@@ -11,2 +11,4 @@ /** | ||
const getTryExtensions = require("../util/get-try-extensions") | ||
const packageNamePattern = /^(?:@[^/\\]+[/\\])?[^/\\]+$/u | ||
const corePackageOverridePattern = /^(?:assert|async_hooks|buffer|child_process|cluster|console|constants|crypto|dgram|dns|domain|events|fs|http|http2|https|inspector|module|net|os|path|perf_hooks|process|punycode|querystring|readline|repl|stream|string_decoder|sys|timers|tls|trace_events|tty|url|util|v8|vm|worker_threads|zlib)[/\\]$/u | ||
@@ -41,3 +43,3 @@ /** | ||
url: | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.0/docs/rules/file-extension-in-import.md", | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.1/docs/rules/file-extension-in-import.md", | ||
}, | ||
@@ -74,3 +76,7 @@ fixable: "code", | ||
// Ignore if it's not resolved to a file or it's a bare module. | ||
if (!filePath || !/[/\\]/u.test(name)) { | ||
if ( | ||
!filePath || | ||
packageNamePattern.test(name) || | ||
corePackageOverridePattern.test(name) | ||
) { | ||
return | ||
@@ -77,0 +83,0 @@ } |
@@ -489,3 +489,3 @@ /** | ||
url: | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.0/docs/rules/no-deprecated-api.md", | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.1/docs/rules/no-deprecated-api.md", | ||
}, | ||
@@ -492,0 +492,0 @@ type: "problem", |
@@ -22,3 +22,3 @@ /** | ||
url: | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.0/docs/rules/no-extraneous-import.md", | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.1/docs/rules/no-extraneous-import.md", | ||
}, | ||
@@ -25,0 +25,0 @@ type: "problem", |
@@ -22,3 +22,3 @@ /** | ||
url: | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.0/docs/rules/no-extraneous-require.md", | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.1/docs/rules/no-extraneous-require.md", | ||
}, | ||
@@ -25,0 +25,0 @@ type: "problem", |
@@ -58,3 +58,3 @@ /** | ||
url: | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.0/docs/rules/no-hide-core-modules.md", | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.1/docs/rules/no-hide-core-modules.md", | ||
}, | ||
@@ -61,0 +61,0 @@ type: "problem", |
@@ -21,3 +21,3 @@ /** | ||
url: | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.0/docs/rules/no-missing-import.md", | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.1/docs/rules/no-missing-import.md", | ||
}, | ||
@@ -24,0 +24,0 @@ type: "problem", |
@@ -21,3 +21,3 @@ /** | ||
url: | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.0/docs/rules/no-missing-require.md", | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.1/docs/rules/no-missing-require.md", | ||
}, | ||
@@ -24,0 +24,0 @@ type: "problem", |
@@ -39,3 +39,3 @@ /** | ||
url: | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.0/docs/rules/no-unpublished-bin.md", | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.1/docs/rules/no-unpublished-bin.md", | ||
}, | ||
@@ -42,0 +42,0 @@ type: "problem", |
@@ -22,3 +22,3 @@ /** | ||
url: | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.0/docs/rules/no-unpublished-import.md", | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.1/docs/rules/no-unpublished-import.md", | ||
}, | ||
@@ -25,0 +25,0 @@ type: "problem", |
@@ -22,3 +22,3 @@ /** | ||
url: | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.0/docs/rules/no-unpublished-require.md", | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.1/docs/rules/no-unpublished-require.md", | ||
}, | ||
@@ -25,0 +25,0 @@ type: "problem", |
@@ -1054,3 +1054,3 @@ /** | ||
url: | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.0/docs/rules/no-unsupported-features.md", | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.1/docs/rules/no-unsupported-features.md", | ||
}, | ||
@@ -1057,0 +1057,0 @@ type: "problem", |
@@ -132,3 +132,3 @@ /** | ||
url: | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.0/docs/rules/no-unsupported-features/es-builtins.md", | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.1/docs/rules/no-unsupported-features/es-builtins.md", | ||
}, | ||
@@ -135,0 +135,0 @@ type: "problem", |
@@ -507,3 +507,3 @@ /** | ||
url: | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.0/docs/rules/no-unsupported-features/es-syntax.md", | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.1/docs/rules/no-unsupported-features/es-syntax.md", | ||
}, | ||
@@ -510,0 +510,0 @@ type: "problem", |
@@ -268,3 +268,3 @@ /** | ||
url: | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.0/docs/rules/no-unsupported-features/node-builtins.md", | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.1/docs/rules/no-unsupported-features/node-builtins.md", | ||
}, | ||
@@ -271,0 +271,0 @@ type: "problem", |
@@ -29,3 +29,3 @@ /** | ||
url: | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.0/docs/rules/prefer-global/buffer.md", | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.1/docs/rules/prefer-global/buffer.md", | ||
}, | ||
@@ -32,0 +32,0 @@ type: "suggestion", |
@@ -26,3 +26,3 @@ /** | ||
url: | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.0/docs/rules/prefer-global/console.md", | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.1/docs/rules/prefer-global/console.md", | ||
}, | ||
@@ -29,0 +29,0 @@ type: "suggestion", |
@@ -26,3 +26,3 @@ /** | ||
url: | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.0/docs/rules/prefer-global/process.md", | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.1/docs/rules/prefer-global/process.md", | ||
}, | ||
@@ -29,0 +29,0 @@ type: "suggestion", |
@@ -29,3 +29,3 @@ /** | ||
url: | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.0/docs/rules/prefer-global/text-decoder.md", | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.1/docs/rules/prefer-global/text-decoder.md", | ||
}, | ||
@@ -32,0 +32,0 @@ type: "suggestion", |
@@ -29,3 +29,3 @@ /** | ||
url: | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.0/docs/rules/prefer-global/text-encoder.md", | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.1/docs/rules/prefer-global/text-encoder.md", | ||
}, | ||
@@ -32,0 +32,0 @@ type: "suggestion", |
@@ -29,3 +29,3 @@ /** | ||
url: | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.0/docs/rules/prefer-global/url-search-params.md", | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.1/docs/rules/prefer-global/url-search-params.md", | ||
}, | ||
@@ -32,0 +32,0 @@ type: "suggestion", |
@@ -28,3 +28,3 @@ /** | ||
url: | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.0/docs/rules/prefer-global/url.md", | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.1/docs/rules/prefer-global/url.md", | ||
}, | ||
@@ -31,0 +31,0 @@ type: "suggestion", |
@@ -39,3 +39,3 @@ /** | ||
url: | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.0/docs/rules/prefer-promises/dns.md", | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.1/docs/rules/prefer-promises/dns.md", | ||
}, | ||
@@ -42,0 +42,0 @@ fixable: null, |
@@ -45,3 +45,3 @@ /** | ||
url: | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.0/docs/rules/prefer-promises/fs.md", | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.1/docs/rules/prefer-promises/fs.md", | ||
}, | ||
@@ -48,0 +48,0 @@ fixable: null, |
@@ -147,3 +147,3 @@ /** | ||
url: | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.0/docs/rules/process-exit-as-throw.md", | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.1/docs/rules/process-exit-as-throw.md", | ||
}, | ||
@@ -150,0 +150,0 @@ type: "problem", |
@@ -61,3 +61,3 @@ /** | ||
url: | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.0/docs/rules/shebang.md", | ||
"https://github.com/mysticatea/eslint-plugin-node/blob/v9.0.1/docs/rules/shebang.md", | ||
}, | ||
@@ -64,0 +64,0 @@ type: "problem", |
{ | ||
"name": "eslint-plugin-node", | ||
"version": "9.0.0", | ||
"version": "9.0.1", | ||
"description": "Additional ESLint's rules for Node.js", | ||
@@ -32,2 +32,3 @@ "engines": { | ||
"opener": "^1.5.1", | ||
"punycode": "^2.1.1", | ||
"rimraf": "^2.6.3" | ||
@@ -34,0 +35,0 @@ }, |
211290
6084
10