Browse Source

Added jshint configuration.

pull/37/head
Simon Eisenmann 11 years ago
parent
commit
0303098385
  1. 8
      .jshint
  2. 2
      Makefile

8
.jshint

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
{
"smarttabs": true,
"onecase": true,
"curly": true,
"forin": true,
"trailing": true,
"asi": true
}

2
Makefile

@ -118,7 +118,7 @@ javascript: @@ -118,7 +118,7 @@ javascript:
dir=$(OUTPUT_JS) $(RJSFLAGS)
jshint:
find static/ -wholename static/js/libs -prune -o -name "*.js" -print0 | xargs -0 -n1 jshint
find static/ -wholename static/js/libs -prune -o -name "*.js" -print0 | xargs -0 -n1 jshint --config .jshint
jsbeautify:
find static/ \( -path static/js/libs -o -path static/translation \) -prune -o -name "*.js" -exec js-beautify -t -o {}.new {} \; -exec mv -f {}.new {} \;

Loading…
Cancel
Save