Skip to content

Commit

Permalink
Added JSHint configuration for CodeClimate
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed Apr 24, 2015
1 parent f8d835b commit 321e149
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 5 deletions.
25 changes: 25 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"bitwise": false,
"curly": false,
"eqeqeq": false,
"forin": false,
"freeze": true,
"immed": false,
"newcap": true,
"noarg": true,
"noempty": true,
"nobsp": true,
"plusplus": false,
"undef": true,
"unused": true,
"maxcomplexity": 40,
"asi": false,
"boss": true,
"debug": false,
"eqnull": false,
"es5": true,
"es6": false,
"evil": false,

"node": true
}
2 changes: 1 addition & 1 deletion lib/ModelHelpers.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/ModelHelpers.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/ModelHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class ModelHelpers<TDocument, TInstance> {
* Gets the field used in the ISchema to represent the document _id
*/
get identifierField(): string {
var id = new String("");
var id = {};
var testDoc = {
_id: id
};
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"scripts": {
"test": "npm run coverage",
"test:watch": "mocha -w",
"coverage": "istanbul cover node_modules/mocha/bin/_mocha -- -R spec --ui bdd"
"coverage": "istanbul cover node_modules/mocha/bin/_mocha -- -R spec --ui bdd",
"lint": "jshint lib/"
},
"engines": {
"node": ">= 0.8"
Expand All @@ -43,7 +44,8 @@
"tick": "~0.1.1",
"istanbul": "~0.3.13",
"coveralls": "^2.11.2",
"codeclimate-test-reporter": "~0.0.4"
"codeclimate-test-reporter": "~0.0.4",
"jshint": "^2.7.0"
},
"keywords": [
"mongodb",
Expand Down

0 comments on commit 321e149

Please sign in to comment.