@humanwhocodes/config-array
Advanced tools
Comparing version 0.11.13 to 0.11.14
33
api.js
@@ -649,34 +649,3 @@ 'use strict'; | ||
if (config.ignores && Object.keys(config).length === 1) { | ||
/* | ||
* If there are directory ignores, then we need to double up | ||
* the patterns to be ignored. For instance, `foo` will also | ||
* need `foo/**` in order to account for subdirectories. | ||
*/ | ||
config.ignores.forEach(ignore => { | ||
result.push(ignore); | ||
if (typeof ignore === 'string') { | ||
// unignoring files won't work unless we unignore directories too | ||
if (ignore.startsWith('!')) { | ||
if (ignore.endsWith('/**')) { | ||
result.push(ignore.slice(0, ignore.length - 3)); | ||
} else if (ignore.endsWith('/*')) { | ||
result.push(ignore.slice(0, ignore.length - 2)); | ||
} | ||
} | ||
// directories should work with or without a trailing slash | ||
if (ignore.endsWith('/')) { | ||
result.push(ignore.slice(0, ignore.length - 1)); | ||
result.push(ignore + '**'); | ||
} else if (!ignore.endsWith('*')) { | ||
result.push(ignore + '/**'); | ||
} | ||
} | ||
}); | ||
result.push(...config.ignores); | ||
} | ||
@@ -683,0 +652,0 @@ } |
{ | ||
"name": "@humanwhocodes/config-array", | ||
"version": "0.11.13", | ||
"version": "0.11.14", | ||
"description": "Glob-based configuration matching.", | ||
@@ -45,4 +45,4 @@ "author": "Nicholas C. Zakas", | ||
"dependencies": { | ||
"@humanwhocodes/object-schema": "^2.0.1", | ||
"debug": "^4.1.1", | ||
"@humanwhocodes/object-schema": "^2.0.2", | ||
"debug": "^4.3.1", | ||
"minimatch": "^3.0.5" | ||
@@ -54,3 +54,3 @@ }, | ||
"chai": "4.3.10", | ||
"eslint": "8.51.0", | ||
"eslint": "8.52.0", | ||
"esm": "3.2.25", | ||
@@ -57,0 +57,0 @@ "lint-staged": "15.0.2", |
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
55643
837
Updateddebug@^4.3.1