mirror of
https://github.com/Azure/setup-helm.git
synced 2026-04-12 01:34:21 +00:00
Add pre-commit hook (#197)
This commit is contained in:
parent
8527f3ee39
commit
4eee2cd0ed
3 changed files with 27 additions and 1 deletions
7
.husky/pre-commit
Normal file
7
.husky/pre-commit
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
npm test
|
||||
npm run format-check || {
|
||||
echo ""
|
||||
echo "❌ Formatting check failed."
|
||||
echo "💡 Run 'npm run format' or 'prettier --write .' to fix formatting issues."
|
||||
exit 1
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue