eslint-plugin-node
Advanced tools
Comparing version 5.2.0 to 5.2.1
@@ -24,3 +24,3 @@ /** | ||
const cache = new Cache() | ||
const SLASH_AT_BEGIN_END = /(?:^\/+|\/+$)/g | ||
const SLASH_AT_BEGIN_AND_END = /^!?\/+|^!|\/+$/g | ||
const PARENT_RELATIVE_PATH = /^\.\./ | ||
@@ -100,6 +100,7 @@ const NEVER_IGNORED = /^(?:readme\.[^.]*|(?:licen[cs]e|changes|changelog|history)(?:\.[^.]*)?)$/i | ||
for (const file of files) { | ||
if (typeof file === "string") { | ||
const normalized = `/${file.replace(SLASH_AT_BEGIN_END, "")}` | ||
ig.add(`!${normalized}`) | ||
ig.add(`!${normalized}/**`) | ||
if (typeof file === "string" && file) { | ||
const prefix = file.startsWith("!") ? "" : "!" | ||
const body = file.replace(SLASH_AT_BEGIN_AND_END, "") | ||
ig.add(`${prefix}/${body}`) | ||
ig.add(`${prefix}/${body}/**`) | ||
} | ||
@@ -141,3 +142,3 @@ } | ||
/** | ||
* Gets an object to check whther or not a given path should be ignored. | ||
* Gets an object to check whether or not a given path should be ignored. | ||
* The object is created from: | ||
@@ -144,0 +145,0 @@ * |
{ | ||
"name": "eslint-plugin-node", | ||
"version": "5.2.0", | ||
"version": "5.2.1", | ||
"description": "Additional ESLint's rules for Node.js", | ||
@@ -29,3 +29,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"ignore": "^3.3.3", | ||
"ignore": "^3.3.6", | ||
"minimatch": "^3.0.4", | ||
@@ -32,0 +32,0 @@ "resolve": "^1.3.3", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
160332
4604
Updatedignore@^3.3.6