Skip to content

ConfigDiscoveryOptions

Options for discoverConfig.

Signatures

ts
interface ConfigDiscoveryOptions {}

Members

Properties

baseDir

Directory the project-scope ancestor walk starts from. Anchors discovery to a location other than the process working directory (e.g. the directory of a file an editor integration is operating on).

ts
baseDir?: string;

configPath

Explicit config file path (--config override). When provided, skips search — loads only this path.

ts
configPath?: string;

loaders

Additional format loaders (JSON is built-in). Later loaders for the same extension win (allows override).

ts
loaders?: readonly FormatLoader[];

searchPaths

Custom search paths (absolute). Replaces the default search paths when provided. Probed in order; first found wins.

ts
searchPaths?: readonly string[];

See Also

Released under the MIT License.