Skip to content

sqm/guard-jslint-on-rails

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOTE: This gem has been deprecated and is superceded by the guard-jshintrb gem

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 jslint-on-rails

Configuration

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

Optional Configuration Settings

# Guardfile
guard 'jslint-on-rails', :config => '/path/to/jslint.yml' do
end

:config - path to jslint.yml config file. default is config/jslint.yml

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

License

This library is released under the MIT license:

About

jslint-on-rails guard plugin

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%