Skip to content
Permalink
Browse files
fix: Global ignores only when no other keys
  • Loading branch information
nzakas committed Jul 29, 2022
1 parent 0a17e00 commit 1f6b6ae89152c1ebe118f55e7ea05c37e7c960dc
Show file tree
Hide file tree
Showing 3 changed files with 204 additions and 202 deletions.
@@ -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 [

0 comments on commit 1f6b6ae

Please sign in to comment.