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

Function selectParserOpts

@commitlint/cli/src/cli.ts:577–587  ·  view source on GitHub ↗
(parserPreset: ParserPreset | undefined)

Source from the content-addressed store, hash-verified

575}
576
577function selectParserOpts(parserPreset: ParserPreset | undefined) {
578 if (typeof parserPreset !== "object") {
579 return undefined;
580 }
581
582 if (typeof parserPreset.parserOpts !== "object") {
583 return undefined;
584 }
585
586 return parserPreset.parserOpts;
587}
588
589function loadFormatter(config: QualifiedConfig, flags: CliFlags): Promise<Formatter> {
590 const moduleName = flags.format || config.formatter || "@commitlint/format";

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected