Update checked-in dependencies
This commit is contained in:
parent
36f1104e11
commit
66c3cec3e8
167 changed files with 6046 additions and 3631 deletions
33
node_modules/@humanwhocodes/config-array/api.js
generated
vendored
33
node_modules/@humanwhocodes/config-array/api.js
generated
vendored
|
|
@ -646,38 +646,7 @@ class ConfigArray extends Array {
|
|||
* are additional keys, then ignores act like exclusions.
|
||||
*/
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue