UNPKG

@felixgeelhaar/cclint

Version:

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

40 lines 1.37 kB
import type { Rule } from '../domain/Rule.js'; import { ContextFile } from '../domain/ContextFile.js'; import { Violation } from '../domain/Violation.js'; /** * Rule that validates CLAUDE.md file location and naming * * @remarks * Validates proper file placement according to Anthropic's hierarchy: * - Enterprise: /Library/Application Support/ClaudeCode/CLAUDE.md (macOS) * - User: ~/.claude/CLAUDE.md * - Project: ./CLAUDE.md or ./.claude/CLAUDE.md * - Local: CLAUDE.local.md (DEPRECATED - use imports instead) * * @see {@link https://docs.claude.com/en/docs/claude-code/memory#determine-memory-type | Memory types} * * @category Rules */ export declare class FileLocationRule implements Rule { readonly id = "file-location"; readonly description = "Validates CLAUDE.md file location and naming conventions"; appliesTo(file: ContextFile): boolean; lint(file: ContextFile): Violation[]; /** * Check location against Anthropic's recommendations */ private checkLocationRecommendations; /** * Check if file should be in .gitignore */ private checkGitIgnoreGuidance; /** * Check if directory is a project location (not user home) */ private isProjectLocation; /** * Get home directory (cross-platform) */ private getHomeDir; } //# sourceMappingURL=FileLocationRule.d.ts.map