UNPKG

@felixgeelhaar/cclint

Version:

Catch CLAUDE.md drift before Claude misbehaves. Lints CLAUDE.md, skills, subagents, and hooks for Claude Code projects.

37 lines 965 B
export class Severity { static ERROR = new Severity(2, 'error'); static WARNING = new Severity(1, 'warning'); static INFO = new Severity(0, 'info'); level; name; constructor(level, name) { this.level = level; this.name = name; } /** * Resolve a severity by its config name ('error' | 'warning' | 'info'), * or undefined for an unrecognised value. */ static fromName(name) { switch (name) { case 'error': return Severity.ERROR; case 'warning': return Severity.WARNING; case 'info': return Severity.INFO; default: return undefined; } } compareTo(other) { return this.level - other.level; } toString() { return this.name; } isAtLeast(minimum) { return this.level >= minimum.level; } } //# sourceMappingURL=Severity.js.map