Skip to content

Commit

Permalink
docs: add information about ESLint --no-warn-ignored (#1332)
Browse files Browse the repository at this point in the history
  • Loading branch information
domnantas committed Oct 12, 2023
1 parent 19a6527 commit 50cc3cc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .changeset/fuzzy-mirrors-rush.md
@@ -0,0 +1,2 @@
---
---
17 changes: 17 additions & 0 deletions README.md
Expand Up @@ -906,4 +906,21 @@ export default {

</details>

#### ESLint >= 8.51.0 && [Flat ESLint config](https://eslint.org/docs/latest/use/configure/configuration-files-new)

<details>
<summary>Click to expand</summary>

ESLint v8.51.0 introduced [`--no-warn-ignored` CLI flag](https://eslint.org/docs/latest/use/command-line-interface#--no-warn-ignored). It suppresses the `warning File ignored because of a matching ignore pattern. Use "--no-ignore" to override` warning, so manually ignoring files via `eslint.isPathIgnored` is no longer necessary.

```json
{
"*.js": "eslint --max-warnings=0 --no-warn-ignored"
}
```

**NOTE:** `--no-warn-ignored` flag is only available when [Flat ESLint config](https://eslint.org/docs/latest/use/configure/configuration-files-new) is used.

</details>

</details>

0 comments on commit 50cc3cc

Please sign in to comment.