Skip to content

git hook to lint js files with jshint before committing them

License

Notifications You must be signed in to change notification settings

arnellebalane/ghk-jshint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

git hook to lint js files with jshint before committing them

Resources

License

Stars

Watchers

Forks

Packages

No packages published