@elsikora/git-branch-lint
Version:
Lint your git branch names
26 lines (25 loc) • 799 B
TypeScript
import type { IBranchLintConfig } from "../../../domain/type/config.type";
/**
* Format hint messages for CLI output
*/
export declare class HintFormatter {
/**
* Format a hint message based on error type and config
* @param error The error that occurred
* @param config The branch configuration
* @returns The formatted hint message
*/
format(error: unknown, config: IBranchLintConfig): string;
/**
* Format a hint for pattern match errors
* @param config The branch configuration
* @returns The formatted hint
*/
private formatPatternMatchHint;
/**
* Format a hint for prohibited branch errors
* @param config The branch configuration
* @returns The formatted hint
*/
private formatProhibitedBranchHint;
}