{
"$type": "site.standard.document",
"description": "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.\n\nTo use JSLint as a gem:\n\ninstall the gem (gem install jslint_on_rails, or via bundler)\ninclude JSLint’s tasks in your Rakefile: require 'jslint/tasks'\nalso in the Rakefile, set path to your config file: JSLint.config_path = \"config/jslint.yml\" (put it anywhere you want)\ncreate a sample config: rake jslint:copy_config\n\nAfter that, you can update your config and run the test as described in the previous post (rake jslint).\n\nGitHub project page - http://github.com/mackuba/jslint_on_rails\nGem page on RubyGems - http://rubygems.org/gems/jslint_on_rails",
"path": "/2009/12/18/jslint-on-rails-available-as-gem/",
"publishedAt": "2009-12-18T09:51:16Z",
"site": "at://did:plc:oio4hkxaop4ao4wz2pp3f4cr/site.standard.publication/3mn5mackuba26",
"tags": [
"JavaScript",
"Ruby/Rails"
],
"textContent": "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.\n\nTo use JSLint as a gem:\n\ninstall the gem (gem install jslint_on_rails, or via bundler)\ninclude JSLint’s tasks in your Rakefile: require 'jslint/tasks'\nalso in the Rakefile, set path to your config file: JSLint.config_path = \"config/jslint.yml\" (put it anywhere you want)\ncreate a sample config: rake jslint:copy_config\n\nAfter that, you can update your config and run the test as described in the previous post (rake jslint).\n\nGitHub project page - http://github.com/mackuba/jslint_on_rails\nGem page on RubyGems - http://rubygems.org/gems/jslint_on_rails",
"title": "JSLint on Rails available as gem",
"updatedAt": "2025-06-30T01:49:16Z"
}