Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ff6e96e

Browse filesBrowse files
authored
docs: baseConfig and overrideConfig can be arrays (#18571)
1 parent 7fbe211 commit ff6e96e
Copy full SHA for ff6e96e

File tree

Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed

‎docs/src/integrate/nodejs-api.md

Copy file name to clipboardExpand all lines: docs/src/integrate/nodejs-api.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ The `ESLint` constructor takes an `options` object. If you omit the `options` ob
140140

141141
* `options.allowInlineConfig` (`boolean`)<br>
142142
Default is `true`. If `false` is present, ESLint suppresses directive comments in source code. If this option is `false`, it overrides the `noInlineConfig` setting in your configurations.
143-
* `options.baseConfig` (`ConfigData | null`)<br>
143+
* `options.baseConfig` (`ConfigData | ConfigData[] | null`)<br>
144144
Default is `null`. [Configuration object], extended by all configurations used with this instance. You can use this option to define the default settings that will be used if your configuration files don't configure it.
145-
* `options.overrideConfig` (`ConfigData | null`)<br>
145+
* `options.overrideConfig` (`ConfigData | ConfigData[] | null`)<br>
146146
Default is `null`. [Configuration object], overrides all configurations used with this instance. You can use this option to define the settings that will be used even if your configuration files configure it.
147147
* `options.overrideConfigFile` (`string | boolean`)<br>
148148
Default is `false`. The path to a configuration file, overrides all configurations used with this instance. The `options.overrideConfig` option is applied after this option is applied.

‎lib/eslint/eslint.js

Copy file name to clipboardExpand all lines: lib/eslint/eslint.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const { Retrier } = require("@humanwhocodes/retry");
6868
* The options with which to configure the ESLint instance.
6969
* @typedef {Object} ESLintOptions
7070
* @property {boolean} [allowInlineConfig] Enable or disable inline configuration comments.
71-
* @property {ConfigData} [baseConfig] Base config object, extended by all configs used with this instance
71+
* @property {ConfigData|Array<ConfigData>} [baseConfig] Base config, extended by all configs used with this instance
7272
* @property {boolean} [cache] Enable result caching.
7373
* @property {string} [cacheLocation] The cache file to use instead of .eslintcache.
7474
* @property {"metadata" | "content"} [cacheStrategy] The strategy used to detect changed files.
@@ -79,7 +79,7 @@ const { Retrier } = require("@humanwhocodes/retry");
7979
* @property {boolean} [globInputPaths] Set to false to skip glob resolution of input file paths to lint (default: true). If false, each input file paths is assumed to be a non-glob path to an existing file.
8080
* @property {boolean} [ignore] False disables all ignore patterns except for the default ones.
8181
* @property {string[]} [ignorePatterns] Ignore file patterns to use in addition to config ignores. These patterns are relative to `cwd`.
82-
* @property {ConfigData} [overrideConfig] Override config object, overrides all configs used with this instance
82+
* @property {ConfigData|Array<ConfigData>} [overrideConfig] Override config, overrides all configs used with this instance
8383
* @property {boolean|string} [overrideConfigFile] Searches for default config file when falsy;
8484
* doesn't do any config file lookup when `true`; considered to be a config filename
8585
* when a string.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.