mirror of
https://github.com/Azure/setup-helm.git
synced 2025-07-15 02:00:36 +00:00
Add pre-commit hook (#197)
This commit is contained in:
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
|
||||
}
|
Reference in New Issue
Block a user