UNPKG

@elsikora/git-branch-lint

Version:
26 lines (25 loc) 799 B
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; }