From e4a31db20a7f660b5443a122a446735d35155801 Mon Sep 17 00:00:00 2001 From: Francesco Trotta Date: Mon, 5 Jun 2023 16:49:50 +0200 Subject: [PATCH] Another note about `dir/` vs. `dir/**` in non-global patterns --- docs/src/use/configure/configuration-files-new.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/src/use/configure/configuration-files-new.md b/docs/src/use/configure/configuration-files-new.md index 11548d53666..74f65f66330 100644 --- a/docs/src/use/configure/configuration-files-new.md +++ b/docs/src/use/configure/configuration-files-new.md @@ -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