Skip to content

JSLint uncommited javascript-files in a Git repository using Node.js

Notifications You must be signed in to change notification settings

jschill/jslint_uncommitted

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

jslint_uncommitted

JSLint 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
  • JSLint
  • ..and probably a Mac. I haven't tested it elsewhere.

Installation

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

Or if you want to use the pre-commit hook

  • Put the jslint_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 jslint_uncommitted.js
  • Make sure the pre-commit is executable, ie: "chmod +x pre-commit"

Credits

About

JSLint uncommited javascript-files in a Git repository using Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published