standardlint
Version:
Extensible standards linter and auditor.
24 lines (22 loc) • 507 B
TypeScript
type CheckInput = {
name: string;
severity?: Severity;
path?: string;
ignorePaths?: IgnorePath[];
};
type Check = {
name: string;
severity: Severity;
path: string;
ignorePaths: IgnorePath[];
};
type CheckResult = {
name: string;
status: Status;
message: string;
path?: string;
};
type Status = 'pass' | 'warn' | 'fail';
type Severity = 'error' | 'warn';
type IgnorePath = string;
export type { Check, CheckInput, CheckResult, IgnorePath, Severity, Status };