Skip to content

Commit

Permalink
chore(githooks): exit if jshint fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Lamping committed May 15, 2014
1 parent c95c844 commit 80e28c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions grunt-tasks/git-hooks/pre-commit
Expand Up @@ -27,4 +27,7 @@ git diff --cached --name-only | \
echo 'Please remove debugging statements before commiting.' && exit 1

grunt jshint:all
if [ $? -ne "0" ]; then
exit 1
fi
grunt jscs

0 comments on commit 80e28c0

Please sign in to comment.