MCPcopy Create free account
hub / github.com/conventional-changelog/commitlint / resolveDefaultConfig

Function resolveDefaultConfig

@commitlint/cli/src/cli.ts:510–515  ·  view source on GitHub ↗
(flags: CliFlags)

Source from the content-addressed store, hash-verified

508}
509
510function resolveDefaultConfig(flags: CliFlags): string {
511 // Resolve from the cli package itself first so the fallback works without
512 // @commitlint/config-conventional being installed in the linted project
513 // (e.g. `npx commitlint --default-config` or strictly isolated node_modules).
514 return resolveModulePath(defaultConfig, flags) || defaultConfig;
515}
516
517function resolveModulePath(moduleName: string, flags: CliFlags): string | undefined {
518 return (

Callers 1

loadConfigFunction · 0.85

Calls 1

resolveModulePathFunction · 0.85

Tested by

no test coverage detected