Skip to content

Commit 6ad8973

Browse files
authored
docs: update --no-ignore and --ignore-pattern documentation (#20036)
1 parent dabbe95 commit 6ad8973

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/use/command-line-interface.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ This option is helpful if you are using another program to format your code, but
525525

526526
#### `--no-ignore`
527527

528-
Disables excluding of files from `.eslintignore` files, `--ignore-path` flags, `--ignore-pattern` flags, and the `ignorePatterns` property in config files.
528+
Disables excluding of files from [`--ignore-pattern`](#--ignore-pattern) flags and the `ignores` property in configuration. In eslintrc mode, `.eslintignore` files, [`--ignore-path`](#--ignore-path) flags, and the `ignorePatterns` property in configuration are also disabled.
529529

530530
- **Argument Type**: No argument.
531531

@@ -540,7 +540,7 @@ Disables excluding of files from `.eslintignore` files, `--ignore-path` flags, `
540540

541541
This option allows you to specify patterns of files to ignore. In eslintrc mode, these are in addition to `.eslintignore`.
542542

543-
- **Argument Type**: String. The supported syntax is the same as for [`.eslintignore` files](configure/ignore-deprecated#the-eslintignore-file), which use the same patterns as the [`.gitignore` specification](https://git-scm.com/docs/gitignore). You should quote your patterns in order to avoid shell interpretation of glob patterns.
543+
- **Argument Type**: String. The supported syntax is the same as for [`ignores` patterns](configure/configuration-files#excluding-files-with-ignores), which use [minimatch](https://www.npmjs.com/package/minimatch) syntax. In eslintrc mode, the syntax is the same as for [`.eslintignore` files](configure/ignore-deprecated#the-eslintignore-file), which use the same patterns as the [`.gitignore` specification](https://git-scm.com/docs/gitignore). You should quote your patterns in order to avoid shell interpretation of glob patterns.
544544
- **Multiple Arguments**: Yes
545545

546546
##### `--ignore-pattern` example

0 commit comments

Comments
 (0)