Skip to content

Commit

Permalink
add jshint for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
baranga committed Jul 25, 2016
1 parent 305640c commit 3a2eb1b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .jshintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
5 changes: 5 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"esversion": 6,
"node": true,
"laxbreak": true
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"mongo"
],
"scripts": {
"hint": "./node_modules/.bin/jshint .",
"test-and-cover": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha"
},
"main": "index.js",
Expand All @@ -30,6 +31,7 @@
"chai": "^3.5.0",
"coveralls": "^2.11.11",
"istanbul": "^0.4.4",
"jshint": "^2.9.0",
"mocha": "^2.5.3",
"mocha-mongoose": "^1.2.0",
"mongodb": "^2.2.4",
Expand Down
5 changes: 5 additions & 0 deletions test/.jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"esversion": 6,
"node": true,
"mocha": true
}

0 comments on commit 3a2eb1b

Please sign in to comment.