1
0
Fork 0
mirror of https://github.com/imjasonh/apidiff-action synced 2026-07-06 22:52:43 +00:00

Set up husky git hooks

- Install husky to run hooks on git commits
- Add pre-commit hook that runs both:
  - lint-staged (for JS/JSON/YAML formatting)
  - pre-commit (for all other checks)
- This ensures formatting issues are caught before commit
This commit is contained in:
Jason Hall 2025-07-29 18:02:58 -04:00
parent f47f0ff743
commit 537866f532
Failed to extract signature

5
.husky/pre-commit Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npx lint-staged
pre-commit run