Skip to content
Browse files

Add JSHint.

  • Loading branch information...
1 parent 3aa2522 commit d35dc395617f958f72cdcc68e9b618dd6db657e6 @domenic committed Jun 14, 2012
Showing with 25 additions and 2 deletions.
  1. +21 −0 .jshintrc
  2. +4 −2 package.json
View
21 .jshintrc
@@ -0,0 +1,21 @@
+{
+ "curly": true,
+ "eqeqeq": true,
+ "immed": true,
+ "latedef": true,
+ "newcap": true,
+ "noarg": true,
+ "nonew": true,
+ "trailing": true,
+ "undef": true,
+ "white": true,
+ "es5": true,
+ "strict": true,
+ "node": true,
+ "indent": 4,
+
+ "predef": [
+ "define",
+ "chai"
+ ]
+}
View
6 package.json
@@ -20,7 +20,8 @@
},
"main": "./dict.js",
"scripts": {
- "test": "mocha"
+ "test": "mocha",
+ "lint": "jshint --show-non-errors dict.js"
},
"engines": {
"node": "*"
@@ -29,6 +30,7 @@
"devDependencies": {
"coffee-script": "1",
"mocha": "1",
- "chai": "1"
+ "chai": "1",
+ "jshint": "~0.7.1"
}
}

0 comments on commit d35dc39

Please sign in to comment.
Something went wrong with that request. Please try again.