Skip to content

Commit

Permalink
Add jscs for style checking
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Jan 10, 2015
1 parent 1f7e61a commit 5c93149
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -49,7 +49,7 @@ Kareem.prototype.execPre = function(name, context, callback) {
return callback(error);
}

if (0 === --numAsyncPres) {
if (--numAsyncPres === 0) {
return callback(null);
}
});
Expand Down Expand Up @@ -180,7 +180,7 @@ Kareem.prototype.createWrapper = function(name, fn, context) {
};

Kareem.prototype.pre = function(name, isAsync, fn, error) {
if ('boolean' !== typeof arguments[1]) {
if (typeof arguments[1] !== 'boolean') {
error = fn;
fn = isAsync;
isAsync = false;
Expand Down
5 changes: 5 additions & 0 deletions package.json
Expand Up @@ -14,8 +14,13 @@
"devDependencies": {
"acquit": "0.0.3",
"istanbul": "0.3.5",
"jscs": "1.9.0",
"mocha": "2.0.0"
},
"jscsConfig": {
"preset": "airbnb",
"requireMultipleVarDecl": null
},
"author": "Valeri Karpov <val@karpov.io>",
"license": "Apache 2.0"
}

0 comments on commit 5c93149

Please sign in to comment.