Skip to content

Instantly share code, notes, and snippets.

@florianherrengt
Last active February 7, 2019 01:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save florianherrengt/2ca11e32041d55106bdf8ef7cc9cf734 to your computer and use it in GitHub Desktop.
Save florianherrengt/2ca11e32041d55106bdf8ef7cc9cf734 to your computer and use it in GitHub Desktop.
check if files have been through prettier
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