node package manager
Easy collaboration. Discover, share, and reuse code in your team. Create a free org »

ghk-jshint

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