0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/.github/hooks/pre-push
Naz 002cf5b0eb Moved linting check to pre-push git hook
refs 81cd5fac7e

- While developing locally it's common to commit small WIP changes which might contain linting errors. Having the check done once on a pre-push phase gives enoght protection from pushing out broken code and reduces frustration when developing locally
2022-05-05 21:36:56 +08:00

12 lines
144 B
Bash

#!/bin/bash
yarn lint
lintStatus=$?
if [ $lintStatus -eq 0 ]
then
echo "linting succeeded"
exit 0
else
echo "linting failed"
exit 1
fi