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

Function getSeed

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

Source from the content-addressed store, hash-verified

523}
524
525function getSeed(flags: CliFlags): UserConfig {
526 const n = (flags.extends || []).filter((i): i is string => typeof i === "string");
527 return n.length > 0
528 ? { extends: n, parserPreset: flags["parser-preset"] }
529 : { parserPreset: flags["parser-preset"] };
530}
531
532function selectParserOpts(parserPreset: ParserPreset | undefined) {
533 if (typeof parserPreset !== "object") {

Callers 1

loadConfigFunction · 0.85

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected