Feat/enable husky precommit check (#159)

* Add husky precommit hook.

Signed-off-by: Tatsat Mishra <tamishra@microsoft.com>

* Add husky precommit hook.

Signed-off-by: Tatsat Mishra <tamishra@microsoft.com>

* Add more informative messaging.

Signed-off-by: Tatsat Mishra <tamishra@microsoft.com>

---------

Signed-off-by: Tatsat Mishra <tamishra@microsoft.com>
This commit is contained in:
Tatsinnit
2025-07-03 06:06:04 +12:00
committed by GitHub
parent 692b57e472
commit c8c2ee9d3e
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
}