Created
May 5, 2015 19:18
-
-
Save arlolra/b3fa1b4067095e2b8a83 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
REPO=$(pwd) | |
JSHINT=$REPO/node_modules/.bin/jshint | |
JSCS=$REPO/node_modules/.bin/jscs | |
npm run dump-tokenizer && ${JSHINT} ${REPO} && ${JSCS} ${REPO} | |
EXIT_CODE=$? | |
if [[ ${EXIT_CODE} -ne 0 ]]; then | |
echo "Lint error!" | |
fi | |
exit ${EXIT_CODE} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment