mirror of
https://github.com/imjasonh/apidiff-action
synced 2026-07-06 22:52:43 +00:00
Add husky pre-commit hook
- Runs lint-staged for automatic formatting of JS/JSON/YAML - Runs pre-commit for all validation checks - Ensures code quality before commits reach the repository - Prevents CI failures due to formatting issues
This commit is contained in:
parent
3d82cf94dd
commit
deed53e7b8
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