Guard::JslintOnRails

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

Install

Install and configure the JSLint on Rails gem

Install the gem:

$ gem install guard-jslint-on-rails

Add it to your Gemfile (inside development group):

gem 'guard-jslint-on-rails'

Add guard definition to your Guardfile by running this command:

$ guard init guard-jslint-on-rails

Configuration

# Guardfile
guard 'jslint-on-rails' do
  # watch for changes on any of your application javascript files
  watch(%r{^app/assets/javascripts/.*\.js$})
  # watch for changes to the JSLint configuration
  watch('config/jslint.yml')
end

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