diff --git a/.config/husky/pre-push b/.config/husky/pre-push index df4b733..f5f375b 100755 --- a/.config/husky/pre-push +++ b/.config/husky/pre-push @@ -1,4 +1,17 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" -cd apps/sim-core; yarn fmt-check +echo "************************************************************************" +echo "** Running sim-core's 'yarn fmt-check' **" +echo "************************************************************************" + +cd apps/sim-core +yarn fmt-check + +if [ $? -ne 0 ]; then + echo "************************************************************************" + echo "** Formatting failed; Run 'yarn fmt' and commit before pushing. **" + echo "************************************************************************" + + exit 1 +fi \ No newline at end of file