Skip to content

Instantly share code, notes, and snippets.

@arlolra
Created May 5, 2015 19:18
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 arlolra/b3fa1b4067095e2b8a83 to your computer and use it in GitHub Desktop.
Save arlolra/b3fa1b4067095e2b8a83 to your computer and use it in GitHub Desktop.
#!/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