Javascript Lint Pre-commit Script

The script enforces Javascript code quality and consistency by using JSHint. The script runs all new or modified Javascript files against JSHint for every commit; if it finds any issues it simply aborts the commit.
http://jt.io/2013/git-pre-commit-js-lint-script/

Advertisements