npm.io
1.0.1 • Published 10 years ago

ghk-jshint

Licence
MIT
Version
1.0.1
Deps
4
Vulns
2
Weekly
0

ghk-jshint

git hook to lint js files with jshint before committing them

plugin for ghk package

installation

$ npm install --save-dev ghk-jshint

usage

inside your project's .ghkrc (or the one in your root directory):

{
    "pre-commit": {
        "jshint": {
            "exclude": ["some/pattern/*", "another/pattern/*"]
        }
    }
}
options
  • exclude: a list of patterns to exclude files from linting