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 |
||
|---|---|---|
| .. | ||
| ci | ||
| hooks | ||
| lib | ||
| release.sh | ||
| setup-package-manager.js | ||
| skill-create-output.js | ||