UNPKG

@stacksjs/gitlint

Version:

Efficient Git Commit Message Linting and Formatting

26 lines (25 loc) 590 B
import type { LintResult, RuleLevel } from './types'; declare const defaultConfig: { verbose: true; rules: { 'conventional-commits': 2; 'header-max-length': Array< 2 | { maxLength: 72 } >; 'body-max-line-length': Array< 2 | { maxLength: 100 } >; 'body-leading-blank': 2; 'no-trailing-whitespace': 1 }; ignores: Array<] as string[> }; declare const config: unknown; declare function normalizeRuleLevel(level: RuleLevel): 0 | 1 | 2; export declare function lintCommitMessage(message: string, verbose?: boolean): LintResult;