forked from codeforamerica/ohana-web-search
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
098339e
commit d0b3c3b
Showing
3 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Load JSHint when jshintrb gem is available | ||
begin | ||
require "jshintrb/jshinttask" | ||
Jshintrb::JshintTask.new :jshint do |t| | ||
t.pattern = "app/assets/javascripts/**/*.js" | ||
#t.options = :defaults | ||
# Custom options are below, uncomment the line | ||
# above for the default set of options. | ||
t.options = { | ||
:bitwise => true, | ||
:curly => false, | ||
:eqeqeq => true, | ||
:forin => true, | ||
:immed => true, | ||
:indent => 2, | ||
:latedef => true, | ||
:newcap => true, | ||
:noarg => true, | ||
:noempty => true, | ||
:nonew => true, | ||
:plusplus => false, | ||
:regexp => true, | ||
:undef => true, | ||
:strict => true, | ||
:trailing => true, | ||
:sub => true, | ||
:browser => true, | ||
:devel => true, | ||
:expr => true, | ||
:predef => { | ||
"requirejs" => false, | ||
"require" => false, | ||
"define" => false, | ||
"Modernizr" => false, | ||
"selectorSupported" => false, | ||
"google" => false | ||
} | ||
} | ||
end | ||
rescue LoadError | ||
end |