Permalink
Browse files

Extracted common JSHint options into jshint.json; you can lint all fi…

…les now with hiro.js

* OK

web.js
* OK

test.js
* OK
  • Loading branch information...
valueof committed Jan 24, 2012
1 parent c596f14 commit 26c3c6349ae3b93248fcca8f1c14077febb968cd
Showing with 22 additions and 5 deletions.
  1. +12 −0 Makefile
  2. +1 −2 hiro.js
  3. +8 −0 jshint.json
  4. +1 −2 test.js
  5. +0 −1 web.js
View
@@ -0,0 +1,12 @@
+lint:
+ @echo "hiro.js"
+ @jshint hiro.js --config jshint.json && echo "* OK"
+ @echo
+
+ @echo "web.js"
+ @jshint web.js --config jshint.json && echo "* OK"
+ @echo
+
+ @echo "test.js"
+ @jshint test.js --config jshint.json && echo "* OK"
+ @echo
View
@@ -21,8 +21,7 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-/*jshint undef:true, browser:true, maxlen:100, loopfunc:true, strict:true,
- eqnull:true, white:true */
+/*jshint loopfunc:true */
var hiro = (function (window, undefined) {
"use strict";
View
@@ -0,0 +1,8 @@
+{
+ "undef": true,
+ "browser": true,
+ "maxlen": 100,
+ "strict": true,
+ "eqnull": true,
+ "white": true
+}
View
@@ -1,5 +1,4 @@
-/*jshint undef:true, browser:true, maxlen:100, eqnull:true, latedef:true,
- smarttabs:true, white:true */
+/*jshint smarttabs:true, strict:false */
/*global hiro:false */
hiro.module('GenericTests', {
View
1 web.js
@@ -21,7 +21,6 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-/*jshint undef:true, browser:true, strict:true, maxlen:100, white:true */
/*global hiro:false, ender:false */
(function (window, undefined) {

0 comments on commit 26c3c63

Please sign in to comment.