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:
parent
f47f0ff743
commit
537866f532
1 changed files with 5 additions and 0 deletions
5
.husky/pre-commit
Executable file
5
.husky/pre-commit
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
npx lint-staged
|
||||
pre-commit run
|
||||
Loading…
Add table
Add a link
Reference in a new issue