Skip to content

Commit

Permalink
Another note about dir/ vs. dir/** in non-global patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
fasttime committed Jun 7, 2023
1 parent ebc8cbb commit e4a31db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/src/use/configure/configuration-files-new.md
Expand Up @@ -116,6 +116,8 @@ export default [

Here, the configuration object excludes files ending with `.config.js` except for `eslint.config.js`. That file still has `semi` applied.

Non-global `ignores` patterns can only match file names. A pattern like `"dir-to-exclude/"` will not ignore anything. To ignore everything in a particular directory, a pattern like `"dir-to-exclude/**"` should be used instead.

If `ignores` is used without `files` and there are other keys (such as `rules`), then the configuration object applies to all files except the ones specified in `ignores`, for example:

```js
Expand Down

0 comments on commit e4a31db

Please sign in to comment.