Skip to content

Like jslint_uncommited, but using jshint (as a node module) instead

Notifications You must be signed in to change notification settings

jschill/jshint_uncommitted

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Similar to jslint_uncommitted, but using JSHint instead of JSLint For JSLint: https://github.com/jschill/jslint_uncommitted

jshint_uncommitted

JSHint uncommitted javascript-files in a Git repository using Node.js

You can also use the pre-commit hook to lint your javascript-files on the fly when committing to your repository.

Requirements

  • Git
  • Node
  • JSHint (installed as node module)
  • ..and probably a Mac. I haven't tested it elsewhere.

Installation

  • Put the jshint_uncommitted.js script somewhere in your git repository
  • Run "node jshint_uncommitted.js"

Or if you want to use the pre-commit hook

  • Put the jshint_uncommitted.js script somewhere in your git repository
  • Put the pre-commit in your {project_root_dir}/.git/hooks directory
  • Change the LINTSCRIPT variable in pre-commit to point to where you placed jshint_uncommitted.js
  • Make sure the pre-commit is executable, ie: "chmod +x pre-commit" or "chmod 755 pre-commit"

Credits

About

Like jslint_uncommited, but using jshint (as a node module) instead

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published