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

Function selectParserOpts

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

Source from the content-addressed store, hash-verified

530}
531
532function selectParserOpts(parserPreset: ParserPreset | undefined) {
533 if (typeof parserPreset !== "object") {
534 return undefined;
535 }
536
537 if (typeof parserPreset.parserOpts !== "object") {
538 return undefined;
539 }
540
541 return parserPreset.parserOpts;
542}
543
544function loadFormatter(config: QualifiedConfig, flags: CliFlags): Promise<Formatter> {
545 const moduleName = flags.format || config.formatter || "@commitlint/format";

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected