Skip to content

Node.js based forum software built for the modern web

ESlint no-space-func

Peter Jaszkowiak1cf25f57fc75
diff --git a/.eslintrc b/.eslintrc
index 9bdcaa181f..d11613a4fd 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -111,7 +111,7 @@
"object-property-newline": "off",
"no-continue": "off",
"no-extra-semi": "off",
- "no-spaced-func": "off",
+ // "no-spaced-func": "off",
// "no-useless-return": "off"
}
}
diff --git a/src/database/mongo.js b/src/database/mongo.js
index 61128f9916..4f67122a86 100644
--- a/src/database/mongo.js
+++ b/src/database/mongo.js
@@ -247,4 +247,4 @@
db.close();
};
-} (exports));
+}(exports));
diff --git a/src/database/redis.js b/src/database/redis.js
index e34d626473..f363aafb5c 100644
--- a/src/database/redis.js
+++ b/src/database/redis.js
@@ -168,5 +168,5 @@
module.helpers = module.helpers || {};
module.helpers.redis = require('./redis/helpers');
-} (exports));
+}(exports));
diff --git a/src/posts/votes.js b/src/posts/votes.js
index 3ecf71a018..f4a766ff76 100644
--- a/src/posts/votes.js
+++ b/src/posts/votes.js
@@ -72,7 +72,7 @@ module.exports = function (Posts) {
return callback(err);
}
- callback (null, {upvoted: hasVoted[0], downvoted: hasVoted[1]});
+ callback(null, {upvoted: hasVoted[0], downvoted: hasVoted[1]});
});
};