Skip to content

Commit

Permalink
Add JSHint.
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Jun 14, 2012
1 parent 3aa2522 commit d35dc39
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .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"
]
}
6 changes: 4 additions & 2 deletions package.json
Expand Up @@ -20,7 +20,8 @@
}, },
"main": "./dict.js", "main": "./dict.js",
"scripts": { "scripts": {
"test": "mocha" "test": "mocha",
"lint": "jshint --show-non-errors dict.js"
}, },
"engines": { "engines": {
"node": "*" "node": "*"
Expand All @@ -29,6 +30,7 @@
"devDependencies": { "devDependencies": {
"coffee-script": "1", "coffee-script": "1",
"mocha": "1", "mocha": "1",
"chai": "1" "chai": "1",
"jshint": "~0.7.1"
} }
} }

0 comments on commit d35dc39

Please sign in to comment.