MacKuba

🍎 Kuba Suder's blog on Mac & iOS development

JSLint on Rails available as gem

Categories: JavaScript, Ruby/Rails Comments: 2 comments

I released version 1.0 of JSLint on Rails yesterday. It has a few new options (see Github project page for more info), but the biggest change is that it’s now available both as a plugin and as a gem, so it can be used also with Merb and other frameworks which don’t support Rails plugins.

To use JSLint as a gem:

  • install the gem (gem install jslint_on_rails, or via bundler)
  • include JSLint’s tasks in your Rakefile: require 'jslint/tasks'
  • also in the Rakefile, set path to your config file: JSLint.config_path = "config/jslint.yml" (put it anywhere you want)
  • create a sample config: rake jslint:copy_config

After that, you can update your config and run the test as described in the previous post (rake jslint).


2 comments:

Flynn Birrell

Similar posts with the data and access of the fields can be discussed on this they have formats to share the access. Patient forms with the services to have https://yourlocallocksmith.co/ with the patient forms to take acceleration of these comments.

Soluta molestiae aut

JS lint rails are available s the gem of the road that is shared in the post of December in year 2009. This is a released kind of the version with the https://www.idriptherapy.com that can make the both gem and the log in as well in the particular aspect ions.

Leave a comment

*

*
This will only be used to display your Gravatar image.

*

What JS method would you use to find all checkboxes on a page? (just the method name)

*