Skip to content

Commit

Permalink
fix: Global ignores only when no other keys
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas committed Jul 29, 2022
1 parent 0a17e00 commit 1f6b6ae
Show file tree
Hide file tree
Showing 3 changed files with 204 additions and 202 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -176,7 +176,7 @@ If the `files` array contains an item that is an array of strings and functions,

If a pattern in the files array begins with `!` then it excludes that pattern. In the preceding example, any filename that doesn't end with `.js` will automatically getting a `settings.js` property set to `false`.

You can also specify an `ignores` key that will force files matching those patterns to not be included. If the `ignores` key is in a config object without a `files` key, then those ignores will always be applied; if the `ignores` key is in a config object with a `files` key, then those ignores are only applied when `files` matches. Here's an example:
You can also specify an `ignores` key that will force files matching those patterns to not be included. If the `ignores` key is in a config object without any other keys, then those ignores will always be applied; otherwise those ignores act as exclusions. Here's an example:

```js
export default [
Expand Down

0 comments on commit 1f6b6ae

Please sign in to comment.