require 'jslintrb-v8'Will return the string:
puts JSLint.new.check("var x = 5")
Error at line 1 character 1: Missing "use strict" statement.Also, all of jslint's configuration options are available in the constructor:
var x = 5
Error at line 1 character 10: Missing semicolon.
var x = 5
JSLint.new(:undef => false, :sub => true)JSLintRB-v8 on Github
JSLintRB-v8 on Rdoc.info