Add husky pre-commit hook. (#418)

Signed-off-by: Tatsat Mishra <tamishra@microsoft.com>
This commit is contained in:
Tatsinnit
2025-07-02 07:35:46 +12:00
committed by GitHub
parent fd0d4accb4
commit 5b189c0bf7
3 changed files with 31 additions and 1 deletions
+7
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
}