Lint JavaScript files from within Roger. This plugin uses jshint. If present, .jshintrc in your project will be used. If not, jshint will walk the directory tree upwards until a .jshintrc file is found. As a last resort, jshint's default configuration is used.
-
Install jshint using npm:
npm install jshint -g -
Add
gem 'roger_jshint'to your Gemfile -
Add this to your Mockupfile:
mockup.test do |t|
t.use :jshint
end
- (Optional) put a .jshintrc in your project's root directory.
Execute roger test jshint.
This project is released under the MIT license.