Skip to content

Commit e763512

Browse files
MaoShizhongnzakas
andauthoredMay 8, 2024··
docs: Link global ignores section in config object property list (#18430)
* Link global ignores section in config object property list * Update docs/src/use/configure/configuration-files.md --------- Co-authored-by: Nicholas C. Zakas <nicholas@humanwhocodes.com>
1 parent 37eba48 commit e763512

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎docs/src/use/configure/configuration-files.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Each configuration object contains all of the information ESLint needs to execut
5858

5959
* `name` - A name for the configuration object. This is used in error messages and config inspector to help identify which configuration object is being used. ([Naming Convention](#configuration-naming-conventions))
6060
* `files` - An array of glob patterns indicating the files that the configuration object should apply to. If not specified, the configuration object applies to all files matched by any other configuration object.
61-
* `ignores` - An array of glob patterns indicating the files that the configuration object should not apply to. If not specified, the configuration object applies to all files matched by `files`.
61+
* `ignores` - An array of glob patterns indicating the files that the configuration object should not apply to. If not specified, the configuration object applies to all files matched by `files`. If `ignores` is used without any other keys in the configuration object, then the patterns act as [global ignores](#globally-ignoring-files-with-ignores).
6262
* `languageOptions` - An object containing settings related to how JavaScript is configured for linting.
6363
* `ecmaVersion` - The version of ECMAScript to support. May be any year (i.e., `2022`) or version (i.e., `5`). Set to `"latest"` for the most recent supported version. (default: `"latest"`)
6464
* `sourceType` - The type of JavaScript source code. Possible values are `"script"` for traditional script files, `"module"` for ECMAScript modules (ESM), and `"commonjs"` for CommonJS files. (default: `"module"` for `.js` and `.mjs` files; `"commonjs"` for `.cjs` files)

0 commit comments

Comments
 (0)
Please sign in to comment.