1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-14 07:30:05 +00:00

chore: pre-push run lint

This commit is contained in:
2022-05-10 14:09:41 +02:00
parent aebf4ea8d8
commit 63328163ab
3 changed files with 9 additions and 5 deletions

11
.git-hooks/pre-push Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/sh
# Using `--silent` helps for showing any errs in the first line of the response
# The first line is picked up by the VS Code GIT UI popup when rc is not 0
if npm run --silent lint:silent ; then
exit 0
else
echo "❌ Prettier check failed! Please run lint:fix."
exit 1
fi