percyperez / JSHint-pre-commit-git-hook

simple git pre-commit git hook for jshinting files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

0. Install node.js (http://nodejs.org/)

1. Install jshint 

   sudo npm install -g jshint

2. Add the file to your repo's .git/hooks dir 

3. Make it executable 
   
   chmod +x .git/hooks/pre-commit

4. Test by committing a *.js file with problems

About

simple git pre-commit git hook for jshinting files