Files

Return to Package Diff Home.
Brought to you by Intrinsic.

Package Diff: eslint-plugin-node @ 9.0.0 .. 9.0.1

lib/rules/exports-style.js

@@ -146,7 +146,7 @@
category: "Stylistic Issues",
recommended: false,
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",
},
type: "suggestion",
fixable: null,

lib/rules/file-extension-in-import.js

@@ -8,6 +8,8 @@
const fs = require("fs")
const getImportExportTargets = require("../util/get-import-export-targets")
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
/**
* Get all file extensions of the files which have the same basename.
@@ -37,7 +39,7 @@
category: "Stylistic Issues",
recommended: false,
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",
},
fixable: "code",
messages: {
@@ -69,7 +71,11 @@
function verify({ filePath, name, node }) {
// 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
}

lib/rules/no-deprecated-api.js

@@ -486,7 +486,7 @@
category: "Best Practices",
recommended: true,
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",
},
type: "problem",
fixable: null,

lib/rules/no-extraneous-import.js

@@ -19,7 +19,7 @@
category: "Possible Errors",
recommended: true,
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",
},
type: "problem",
fixable: null,

lib/rules/no-extraneous-require.js

@@ -19,7 +19,7 @@
category: "Possible Errors",
recommended: true,
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",
},
type: "problem",
fixable: null,

lib/rules/no-hide-core-modules.js

@@ -55,7 +55,7 @@
category: "Possible Errors",
recommended: false,
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",
},
type: "problem",
deprecated: true,

lib/rules/no-missing-import.js

@@ -18,7 +18,7 @@
category: "Possible Errors",
recommended: true,
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",
},
type: "problem",
fixable: null,

lib/rules/no-missing-require.js

@@ -18,7 +18,7 @@
category: "Possible Errors",
recommended: true,
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",
},
type: "problem",
fixable: null,

lib/rules/no-unpublished-bin.js

@@ -36,7 +36,7 @@
category: "Possible Errors",
recommended: true,
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",
},
type: "problem",
fixable: null,

lib/rules/no-unpublished-import.js

@@ -19,7 +19,7 @@
category: "Possible Errors",
recommended: true,
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",
},
type: "problem",
fixable: null,

lib/rules/no-unpublished-require.js

@@ -19,7 +19,7 @@
category: "Possible Errors",
recommended: true,
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",
},
type: "problem",
fixable: null,

lib/rules/no-unsupported-features/es-builtins.js

@@ -129,7 +129,7 @@
category: "Possible Errors",
recommended: true,
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",
},
type: "problem",
fixable: null,

lib/rules/no-unsupported-features/es-syntax.js

@@ -504,7 +504,7 @@
category: "Possible Errors",
recommended: true,
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",
},
type: "problem",
fixable: null,

lib/rules/no-unsupported-features/node-builtins.js

@@ -265,7 +265,7 @@
category: "Possible Errors",
recommended: true,
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",
},
type: "problem",
fixable: null,

lib/rules/no-unsupported-features.js

@@ -1051,7 +1051,7 @@
"node/no-unsupported-features/es-builtins",
],
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",
},
type: "problem",
deprecated: true,

lib/rules/prefer-global/buffer.js

@@ -26,7 +26,7 @@
category: "Stylistic Issues",
recommended: false,
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",
},
type: "suggestion",
fixable: null,

lib/rules/prefer-global/console.js

@@ -23,7 +23,7 @@
category: "Stylistic Issues",
recommended: false,
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",
},
type: "suggestion",
fixable: null,

lib/rules/prefer-global/process.js

@@ -23,7 +23,7 @@
category: "Stylistic Issues",
recommended: false,
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",
},
type: "suggestion",
fixable: null,

lib/rules/prefer-global/text-decoder.js

@@ -26,7 +26,7 @@
category: "Stylistic Issues",
recommended: false,
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",
},
type: "suggestion",
fixable: null,

lib/rules/prefer-global/text-encoder.js

@@ -26,7 +26,7 @@
category: "Stylistic Issues",
recommended: false,
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",
},
type: "suggestion",
fixable: null,

lib/rules/prefer-global/url.js

@@ -25,7 +25,7 @@
category: "Stylistic Issues",
recommended: false,
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",
},
type: "suggestion",
fixable: null,

lib/rules/prefer-global/url-search-params.js

@@ -26,7 +26,7 @@
category: "Stylistic Issues",
recommended: false,
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",
},
type: "suggestion",
fixable: null,

lib/rules/prefer-promises/dns.js

@@ -36,7 +36,7 @@
category: "Stylistic Issues",
recommended: false,
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",
},
fixable: null,
messages: {

lib/rules/prefer-promises/fs.js

@@ -42,7 +42,7 @@
category: "Stylistic Issues",
recommended: false,
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",
},
fixable: null,
messages: {

lib/rules/process-exit-as-throw.js

@@ -144,7 +144,7 @@
category: "Possible Errors",
recommended: true,
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",
},
type: "problem",
fixable: null,

lib/rules/shebang.js

@@ -58,7 +58,7 @@
category: "Possible Errors",
recommended: true,
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",
},
type: "problem",
fixable: "code",

package.json

@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-node",
- "version": "9.0.0",
+ "version": "9.0.1",
"description": "Additional ESLint's rules for Node.js",
"engines": {
"node": ">=8.10.0"
@@ -29,6 +29,7 @@
"mocha": "^6.1.4",
"nyc": "^14.0.0",
"opener": "^1.5.1",
+ "punycode": "^2.1.1",
"rimraf": "^2.6.3"
},
"scripts": {