Last active
February 7, 2019 01:59
-
-
Save florianherrengt/2ca11e32041d55106bdf8ef7cc9cf734 to your computer and use it in GitHub Desktop.
check if files have been through prettier
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prettier --write frontend/**/*.ts | |
prettier --write backend/**/*.ts | |
if [[ $(git ls-files -m) ]]; then | |
echo "You need to run prettier on those files" | |
git ls-files -m | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment