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

Function getSeed

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

Source from the content-addressed store, hash-verified

568}
569
570function getSeed(flags: CliFlags): UserConfig {
571 const n = (flags.extends || []).filter((i): i is string => typeof i === "string");
572 return n.length > 0
573 ? { extends: n, parserPreset: flags["parser-preset"] }
574 : { parserPreset: flags["parser-preset"] };
575}
576
577function selectParserOpts(parserPreset: ParserPreset | undefined) {
578 if (typeof parserPreset !== "object") {

Callers 1

loadConfigFunction · 0.85

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected