Sha256: 5f4984d765852f43c59b29174ecb7c758ccd43de2aac3af7c5b73274741f47a0
Contents?: true
Size: 903 Bytes
Versions: 2
Compression:
Stored size: 903 Bytes
Contents
import type { ColorName, ModifierName } from 'chalk'; import { QualifiedRules } from './load.js'; import { RuleConfigSeverity } from './rules.js'; export type Formatter = (report: FormattableReport, options: FormatOptions) => string; export interface FormattableProblem { level: RuleConfigSeverity; name: keyof QualifiedRules; message: string; } export interface FormattableResult { errors?: FormattableProblem[]; warnings?: FormattableProblem[]; } export interface WithInput { input?: string; } export interface FormattableReport { results?: (FormattableResult & WithInput)[]; } export type ChalkColor = ColorName | ModifierName; export interface FormatOptions { color?: boolean; signs?: readonly [string, string, string]; colors?: readonly [ChalkColor, ChalkColor, ChalkColor]; verbose?: boolean; helpUrl?: string; } //# sourceMappingURL=format.d.ts.map
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pcp-server-ruby-sdk-0.0.6 | node_modules/@commitlint/types/lib/format.d.ts |
pcp-server-ruby-sdk-0.1.0 | node_modules/@commitlint/types/lib/format.d.ts |