jslint-v8 is simply a ruby wrapper that helps you run JSHint as an automated code quality standards tool inside your projects. It's geared towards being run in a continuous integration process (CI), such as Jenkins.
While it is focused on Ruby projects it can just as easily be used for any other language out there so long as you have Ruby installed on your system.
How to use
Make sure you have Ruby and Rubygems installed on your computer (most operating systems except for Windows have this already)
In your console run:
gem install jslint-v8
Run the following command
For full details on using the command line interface simply type
jslint-v8 --help into your console
You can see which options are enabled by default by examining the output of
In addition to the CLI you can also set up a Rake task to automatically run against a set of files. Inside your Rakefile add the following:
Modify the above as needed.
The code above:
- generates a rake task named "js:lint" with the given description
- write results to standard output (STDOUT)
- runs with all the default jshint options enabled except bitwise, but also enabling strict, jquery and browser
Whatever works, but my preference is for you to fork this repository on github and write your changes on a separate branch. When finished you can send them to me by issuing a pull request.
Feature Requests / Suggestions
You can open up an Issue here on Github or if you'd prefer send me a message here on Github, please try and give me a good use case for your feature request / suggestion.
jslint-v8 is released under the MIT license