Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
#!/bin/sh | |
# Run changed javascript files through jshint before commiting and prevent bad | |
# code from being committed. | |
# If you need to prevent newly added js from being checked because its in a | |
# library like bower_components, add a .jshintignore file and list the directory | |
# INSTALL: Add as a file in your repo as .git/hooks/pre-commit | |
FILES=$(git diff --cached --name-only --diff-filter=ACM| grep ".js$") | |
if [ "$FILES" = "" ]; then | |
exit 0 |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.