diff --git a/jshint.json b/.jshintrc similarity index 93% rename from jshint.json rename to .jshintrc index 0474b7e..e3e81d8 100644 --- a/jshint.json +++ b/.jshintrc @@ -1,5 +1,6 @@ { "boss": true, + "camelcase": true, "node": true, "strict": true, "white": false, diff --git a/lib/abstract.js b/lib/abstract.js index 13c21e0..6198c60 100644 --- a/lib/abstract.js +++ b/lib/abstract.js @@ -137,7 +137,7 @@ Abstract.prototype.request = function(method, uri) { if (args.length == 3) { callback = args.pop() } - if (method.toUpperCase() === 'GET' && json != null) { + if (method.toUpperCase() === 'GET' && json !== null) { uri.push("?" + qs.stringify(json)) } diff --git a/lib/application.js b/lib/application.js index 62563cf..cdffc4a 100644 --- a/lib/application.js +++ b/lib/application.js @@ -58,8 +58,8 @@ Application.prototype.createGroupMembership = function(acct, group, callback) { return new GroupMemberships(_this.options).setData({ account: { href: resAccts[0].getData('href') - } - , group: { + }, + group: { href: resGroups[0].getData('href') } }).create(function(errFinal, body) { diff --git a/package.json b/package.json index 0423814..50b2114 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "index.js", "scripts": { "test": "./node_modules/.bin/mocha --reporter list test/*.js", - "lint": "./node_modules/.bin/jshint --config jshint.json lib/*.js" + "lint": "./node_modules/.bin/jshint --config .jshintrc lib/*.js" }, "repository": { "type": "git",