mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 15:02:30 +02: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 |
||
|---|---|---|
| .. | ||
| check-console-log.js | ||
| evaluate-session.js | ||
| post-edit-console-warn.js | ||
| post-edit-format.js | ||
| post-edit-typecheck.js | ||
| pre-compact.js | ||
| session-end.js | ||
| session-start.js | ||
| suggest-compact.js | ||