Wraps jshint.js in the simplest wrapper I could imagine.
Add this line to your application's Gemfile:
gem 'simple_jshint'
And then execute:
$ bundle
Or install it yourself as:
$ gem install simple_jshint
require "simple_jshint"
result = SimpleJSHint.check("some('dodgy').javascript()\ncode;")
result.ok? # => false
result.length # => 2
result.first # => "Line 1: some('dodgy').javascript() : Error Missing semicolon.",
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)