Skip to content

Instantly share code, notes, and snippets.

@valentinzberea
Last active August 29, 2015 13:56
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 valentinzberea/8801756 to your computer and use it in GitHub Desktop.
Save valentinzberea/8801756 to your computer and use it in GitHub Desktop.
Pre-commit hook for coffeescript-jshint
git diff --staged --name-only | xargs coffee-jshint -g define,$,_,setTimeout,start,window
if [[ $? -ne 0 ]]; then
echo 'WARNING: You are about to commit files with coffee-jshint warnings'
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment