UNPKG

@eventcatalog/linter

Version:

A linter for EventCatalog to validate frontmatter and resource references

16 lines 769 B
import { ValidationError } from '../types'; import { ParseError } from '../parser'; export interface ReportSummary { totalErrors: number; totalWarnings: number; schemaErrors: number; referenceErrors: number; parseErrors: number; filesChecked: number; filesWithErrors: number; } export declare const formatError: (error: ValidationError, showFilename?: boolean) => string; export declare const formatParseError: (error: ParseError, showFilename?: boolean) => string; export declare const groupErrorsByFile: (errors: ValidationError[]) => Map<string, ValidationError[]>; export declare const reportErrors: (validationErrors: ValidationError[], parseErrors: ParseError[], verbose?: boolean) => ReportSummary; //# sourceMappingURL=index.d.ts.map