git hook to lint js files with jshint before committing them
plugin for ghk package
$ npm install --save-dev ghk-jshint
inside your project's .ghkrc
(or the one in your root directory):
{
"pre-commit": {
"jshint": {
"exclude": ["some/pattern/*", "another/pattern/*"]
}
}
}
- exclude: a list of patterns to exclude files from linting