forked from bitcoin-dot-org/Bitcoin.org
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
5 changed files
with
134 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
{ | ||
// JSHint Configuration File | ||
// See http://jshint.com/docs/ for more details | ||
|
||
"maxerr" : 200, | ||
|
||
//Enforcing | ||
|
||
"bitwise" : true, | ||
"camelcase" : false, | ||
"curly" : false, | ||
"eqeqeq" : true, | ||
"forin" : true, | ||
"freeze" : true, | ||
"immed" : false, | ||
"indent" : 4, | ||
"latedef" : false, | ||
"newcap" : false, | ||
"noarg" : true, | ||
"noempty" : true, | ||
"nonbsp" : true, | ||
"nonew" : false, | ||
"plusplus" : false, | ||
"quotmark" : false, | ||
"undef" : true, | ||
"unused" : false, | ||
"strict" : true, | ||
"maxparams" : false, | ||
"maxdepth" : false, | ||
"maxstatements" : false, | ||
"maxcomplexity" : false, | ||
"maxlen" : false, | ||
|
||
//Relaxing | ||
|
||
"asi" : false, | ||
"boss" : false, | ||
"debug" : false, | ||
"eqnull" : false, | ||
"es5" : false, | ||
"esnext" : false, | ||
"moz" : false, | ||
"evil" : false, | ||
"expr" : true, | ||
"funcscope" : false, | ||
"globalstrict" : true, | ||
"iterator" : false, | ||
"lastsemic" : false, | ||
"laxbreak" : false, | ||
"laxcomma" : false, | ||
"loopfunc" : false, | ||
"multistr" : false, | ||
"noyield" : false, | ||
"notypeof" : false, | ||
"proto" : false, | ||
"scripturl" : false, | ||
"shadow" : true, | ||
"sub" : false, | ||
"supernew" : false, | ||
"validthis" : false, | ||
|
||
// Environments | ||
|
||
"browser" : true, | ||
"browserify" : false, | ||
"couch" : false, | ||
"devel" : true, | ||
"dojo" : false, | ||
"jasmine" : false, | ||
"jquery" : true, | ||
"mocha" : true, | ||
"mootools" : false, | ||
"node" : false, | ||
"nonstandard" : false, | ||
"phantom" : false, | ||
"prototypejs" : false, | ||
"qunit" : false, | ||
"rhino" : false, | ||
"shelljs" : false, | ||
"typed" : false, | ||
"worker" : false, | ||
"wsh" : false, | ||
"yui" : false, | ||
|
||
// Globals | ||
|
||
"predef" : { | ||
"getEvent" : false, | ||
"addClass" : false, | ||
"getStyle" : false, | ||
"addEvent" : false, | ||
"cancelEvent" : false, | ||
"removeClass" : false, | ||
"removeEvent" : false, | ||
"onTouchClick" : false, | ||
"isMobile" : false, | ||
"L" : false // leaflet library | ||
} | ||
|
||
} |
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
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,20 @@ | ||
#!/usr/bin/env ruby | ||
|
||
# This file is licensed under the MIT License (MIT) available on | ||
# http://opensource.org/licenses/MIT. | ||
|
||
# Print any warning from JSHint for custom javascript code. | ||
|
||
require 'jshintrb' | ||
|
||
if ARGV[0].nil? | ||
path_to_check="./_site/js" | ||
else | ||
path_to_check=ARGV[0] | ||
end | ||
|
||
Dir.foreach(path_to_check) do |file| | ||
next if !/\.js$/.match(file) | ||
res = Jshintrb.report(File.read(path_to_check + '/' + file), :jshintrc) | ||
print path_to_check + '/' + file + "\n" + res if res.length != 0 | ||
end |