10
0
Fork 0
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:
Suneha Bose 2025-07-02 14:53:58 -07:00 committed by GitHub
parent 8527f3ee39
commit 4eee2cd0ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 27 additions and 1 deletions

7
.husky/pre-commit Normal file
View 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
}