Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
jshint-on-rails guard plugin, originated from wireframe's https://github.com/wireframe/guard-jslint-on-rails
Ruby
Branch: master
Pull request Compare This branch is 14 commits ahead, 9 commits behind wireframe:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/guard
.gitignore
Gemfile
README.md
Rakefile
guard-jshint-on-rails.gemspec

README.md

Guard::JshintOnRails

This project is a fork from wireframe's guard-jslint-on-rails. Instead of using the original jslint-on-rails, jshint-on-rails is used here.

Guard plugin to verify that Javascript files comply with JSHint validations.

Install

Install and configure the JSHint on Rails gem.

Install the gem:

$ gem install guard-jshint-on-rails

Add it to your Gemfile (inside development group):

gem 'guard-jshint-on-rails'

Add guard definition to your Guardfile by running this command:

$ guard init jshint-on-rails

Configuration

# Guardfile
guard 'jshint-on-rails' do
  # watch for changes to application javascript files
  watch(%r{^app/assets/javascripts/.*\.js$})
end

Additional option :config_path is available to specify the path to the yaml file.

Please read Guard doc for more information about the Guardfile DSL.

Something went wrong with that request. Please try again.