@commitlint/format
Format commitlint reports
Install
sh
npm install --save @commitlint/formatSignature
ts
type Problem = {
/*
* Level of the problem hint | warning | error
*/
level: 0 | 1 | 2;
/*
* Name of the problem to annotate the message with
*/
name: string;
/*
* Message to print
*/
message: string;
}
type Report = {
results: ReportResult[];
}
type ReportResult = {
errors: Problem[];
warnings: Problem[];
}
type formatOptions = {
/**
* Color the output
**/
color: boolean = true;
/**
* Signs to use as decoration for messages with severity 0, 1, 2
**/
signs: readonly [string; string; string] = [' ', '⚠', '✖'];
/**
* Colors to use for messages with severity 0, 1, 2
**/
colors: readonly [string; string; string] = ['white', 'yellow', 'red'];
/**
* Print summary and inputs for reports without problems
**/
verbose: boolean = false