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

Function resolveModulePath

@commitlint/cli/src/cli.ts:562–568  ·  view source on GitHub ↗
(moduleName: string, flags: CliFlags)

Source from the content-addressed store, hash-verified

560}
561
562function resolveModulePath(moduleName: string, flags: CliFlags): string | undefined {
563 return (
564 resolveFromSilent(moduleName, __dirname) ||
565 resolveFromSilent(moduleName, flags.cwd) ||
566 resolveGlobalSilent(moduleName)
567 );
568}
569
570function getSeed(flags: CliFlags): UserConfig {
571 const n = (flags.extends || []).filter((i): i is string => typeof i === "string");

Callers 2

resolveDefaultConfigFunction · 0.85
loadFormatterFunction · 0.85

Calls 2

resolveFromSilentFunction · 0.85
resolveGlobalSilentFunction · 0.85

Tested by

no test coverage detected