k8s-set-context/.husky/pre-commit
Tatsinnit c8c2ee9d3e
Some checks failed
CodeQL Advanced / Analyze (javascript-typescript) (push) Failing after 5s
Run Integration Tests / kubeconfig-method-integration-test (push) Failing after 7s
Run Prettify / Prettier Check (push) Failing after 6s
Run Unit Tests / unit-test (push) Failing after 3s
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>
2025-07-02 14:06:04 -04:00

7 lines
No EOL
178 B
Text

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
}