mirror of
https://github.com/sasjs/adapter.git
synced 2025-12-15 18:54:36 +00:00
chore: pre-push run lint
This commit is contained in:
@@ -3,6 +3,9 @@
|
||||
# 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
|
||||
|
||||
npm run --silent lint:fix
|
||||
|
||||
exit 0
|
||||
if npm run --silent lint:silent ; then
|
||||
exit 0
|
||||
else
|
||||
echo "❌ Prettier check failed! Please run lint:fix."
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user