mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
002cf5b0eb
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
12 lines
144 B
Bash
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
|