Permalink
Browse files

Now supports linting through jshint

  • Loading branch information...
1 parent 9b9912c commit 209033eeeaa3da9d84c246d646dedc95f4379001 @biril committed Dec 20, 2012
Showing with 7 additions and 2 deletions.
  1. +4 −1 Makefile
  2. +1 −0 backbone.faux.server.js
  3. +2 −1 package.json
View
@@ -1,4 +1,7 @@
test:
node ./test/testrunner.js
-.PHONY: test
+lint:
+ jshint --show-non-errors backbone.faux.server.js test/testrunner.js test/test.js
+
+.PHONY: test lint
View
@@ -4,6 +4,7 @@
* Licensed under the MIT License.
* Copyright (c) 2012 Alex Lambiris
*/
+/*global exports, define, require, _, Backbone, setTimeout */
(function (root, createModule) {
"use strict";
View
@@ -26,7 +26,8 @@
"qunit": "0.5.x"
},
"scripts": {
- "test": "node ./test/testrunner.js"
+ "test": "node ./test/testrunner.js",
+ "lint": "jshint --show-non-errors backbone.faux.server.js test/testrunner.js test/test.js"
},
"engines": {
"node": ">=0.8"

0 comments on commit 209033e

Please sign in to comment.