mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-02-15 02:43:20 +08:00
Move three complex inline hooks from hooks.json into proper external scripts in scripts/hooks/: - post-edit-format.js: Prettier auto-formatting (was 1 minified line) - post-edit-typecheck.js: TypeScript check (was 1 minified line with unbounded directory traversal, now capped at 20 levels) - post-edit-console-warn.js: console.log warnings (was 1 minified line) Benefits: - Readable, documented, and properly error-handled - Testable independently via stdin - Consistent with other hooks (all use external scripts now) - Adds timeouts to Prettier (15s) and tsc (30s) to prevent hangs