UNPKG

@felixgeelhaar/cclint

Version:

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

26 lines 1.08 kB
import type { Rule } from '../domain/Rule.js'; import { ContextFile } from '../domain/ContextFile.js'; import { Violation } from '../domain/Violation.js'; export declare class HookConfigurationRule implements Rule { readonly id = "hook-configuration"; readonly description = "Validates Claude Code hook configuration"; private readonly dangerousPatterns; constructor(options?: { dangerousCommands?: string[]; isRegex?: boolean; }); appliesTo(file: ContextFile): boolean; lint(file: ContextFile): Violation[]; private static readonly SETTINGS_PATH_PATTERN; private isSettingsFile; private parseJson; private static readonly KNOWN_EVENTS; private validateHooks; /** Validate one `{ matcher?, hooks: [...] }` group under an event. */ private validateMatcherGroup; /** Validate one `{ type: "command", command: "..." }` entry. */ private validateHookCommand; /** Scan a real hook command string for danger + fail-safety. */ private checkCommand; } //# sourceMappingURL=HookConfigurationRule.d.ts.map