ESlint eol-last

v1.18.x
Peter Jaszkowiak 8 years ago
parent 41896e1fc7
commit feb8405f95

@ -98,7 +98,7 @@
"no-shadow": "off", "no-shadow": "off",
"prefer-template": "off", "prefer-template": "off",
"padded-blocks": "off", "padded-blocks": "off",
"eol-last": "off", // "eol-last": "off",
// "lines-around-directive": "off", // "lines-around-directive": "off",
// "strict": "off", // "strict": "off",
// "comma-dangle": "off", // "comma-dangle": "off",

@ -143,4 +143,4 @@ module.exports = function (grunt) {
worker = fork('app.js', args, { env: env }); worker = fork('app.js', args, { env: env });
grunt.event.on('watch', update); grunt.event.on('watch', update);
}; };

@ -31,4 +31,4 @@ function done(err, result) {
} }
process.send({result: result}); process.send({result: result});
process.disconnect(); process.disconnect();
} }

@ -79,4 +79,4 @@ function saveDatabaseConfig(config, databaseConfig, callback) {
} }
callback(null, config); callback(null, config);
} }

@ -157,4 +157,4 @@ function compileJS(callback) {
fs.writeFile(path.join(__dirname, '../public/installer.min.js'), result.code, callback); fs.writeFile(path.join(__dirname, '../public/installer.min.js'), result.code, callback);
} }
module.exports = web; module.exports = web;

@ -78,4 +78,4 @@ function concatenateScripts(scripts, callback) {
callback(scripts); callback(scripts);
}); });
} }

@ -230,4 +230,4 @@
}); });
}); });
} }
}()); }());

@ -110,4 +110,4 @@ define('admin/advanced/errors', ['Chart', 'translator'], function (Chart, transl
}; };
return Errors; return Errors;
}); });

@ -207,4 +207,4 @@ define('admin/manage/categories', ['vendor/jquery/serializeObject/jquery.ba-seri
} }
return Categories; return Categories;
}); });

@ -166,4 +166,4 @@ define('admin/manage/category-analytics', ['Chart'], function (Chart) {
}; };
return CategoryAnalytics; return CategoryAnalytics;
}); });

@ -480,4 +480,4 @@ define('admin/manage/category', [
return Category; return Category;
}); });

@ -173,4 +173,4 @@ define('admin/manage/flags', [
} }
return Flags; return Flags;
}); });

@ -41,4 +41,4 @@ define('admin/manage/ip-blacklist', ['translator'], function (translator) {
}; };
return Blacklist; return Blacklist;
}); });

@ -169,4 +169,4 @@ define('admin/manage/tags', [
} }
return Tags; return Tags;
}); });

@ -150,4 +150,4 @@ define('admin/modules/search', ['mousetrap'], function (mousetrap) {
} }
return search; return search;
}); });

@ -21,4 +21,4 @@ define('admin/settings/cookies', [
}; };
return Module; return Module;
}); });

@ -423,4 +423,4 @@ $(document).ready(function () {
$(this).parent().remove(); $(this).parent().remove();
}); });
}); });

@ -54,4 +54,4 @@ define('forum/chats/recent', function () {
return recent; return recent;
}); });

@ -94,4 +94,4 @@ define('forum/groups/memberlist', ['components', 'forum/infinitescroll'], functi
} }
return MemberList; return MemberList;
}); });

@ -88,4 +88,4 @@ define('forum/infinitescroll', function () {
}; };
return scroll; return scroll;
}); });

@ -123,4 +123,4 @@ $('document').ready(function () {
}, 750); }, 750);
}); });
} }
}); });

@ -86,4 +86,4 @@ define('coverPhoto', [
}; };
return coverPhoto; return coverPhoto;
}); });

@ -54,4 +54,4 @@ define('postSelect', ['components'], function (components) {
return PostSelect; return PostSelect;
}); });

@ -28,4 +28,4 @@ define('scrollStop', function () {
}; };
return Module; return Module;
}); });

@ -127,4 +127,4 @@ define('uploader', ['translator'], function (translator) {
} }
return module; return module;
}); });

@ -125,4 +125,4 @@ app.isConnected = false;
window.location.href = config.relative_path + '/'; window.location.href = config.relative_path + '/';
} }
}()); }());

@ -112,4 +112,4 @@ module.exports = function (Categories) {
db.incrObjectFieldBy('category:' + cid, field, value, callback); db.incrObjectFieldBy('category:' + cid, field, value, callback);
}; };
}; };

@ -104,4 +104,4 @@ module.exports = function (Categories) {
callback(err); callback(err);
}); });
} }
}; };

@ -54,4 +54,4 @@ module.exports = function (Categories) {
db.isSetMember('cid:' + cid + ':read_by_uid', uid, callback); db.isSetMember('cid:' + cid + ':read_by_uid', uid, callback);
}; };
}; };

@ -114,4 +114,4 @@ chatsController.redirectToChat = function (req, res, next) {
}; };
module.exports = chatsController; module.exports = chatsController;

@ -158,4 +158,4 @@ editController.uploadCoverPicture = function (req, res, next) {
}); });
}; };
module.exports = editController; module.exports = editController;

@ -53,4 +53,4 @@ function getFollow(tpl, name, req, res, callback) {
}); });
} }
module.exports = followController; module.exports = followController;

@ -51,4 +51,4 @@ groupsController.get = function (req, res, callback) {
}); });
}; };
module.exports = groupsController; module.exports = groupsController;

@ -42,4 +42,4 @@ infoController.get = function (req, res, callback) {
}); });
}; };
module.exports = infoController; module.exports = infoController;

@ -149,4 +149,4 @@ function getFromUserSet(template, req, res, callback) {
}); });
} }
module.exports = postsController; module.exports = postsController;

@ -137,4 +137,4 @@ profileController.get = function (req, res, callback) {
}); });
}; };
module.exports = profileController; module.exports = profileController;

@ -52,4 +52,4 @@ sessionController.revoke = function (req, res, next) {
}); });
}; };
module.exports = sessionController; module.exports = sessionController;

@ -189,4 +189,4 @@ function getHomePageRoutes(callback) {
} }
module.exports = settingsController; module.exports = settingsController;

@ -32,4 +32,4 @@ cacheController.get = function (req, res, next) {
}; };
module.exports = cacheController; module.exports = cacheController;

@ -32,4 +32,4 @@ databaseController.get = function (req, res, next) {
}); });
}; };
module.exports = databaseController; module.exports = databaseController;

@ -35,4 +35,4 @@ errorsController.export = function (req, res, next) {
}; };
module.exports = errorsController; module.exports = errorsController;

@ -39,4 +39,4 @@ eventsController.get = function (req, res, next) {
}; };
module.exports = eventsController; module.exports = eventsController;

@ -63,4 +63,4 @@ homePageController.get = function (req, res, next) {
}); });
}; };
module.exports = homePageController; module.exports = homePageController;

@ -97,4 +97,4 @@ function getGitInfo(callback) {
}, callback); }, callback);
} }
module.exports = infoController; module.exports = infoController;

@ -22,4 +22,4 @@ languagesController.get = function (req, res, next) {
}); });
}; };
module.exports = languagesController; module.exports = languagesController;

@ -6,4 +6,4 @@ loggerController.get = function (req, res) {
res.render('admin/development/logger', {}); res.render('admin/development/logger', {});
}; };
module.exports = loggerController; module.exports = loggerController;

@ -19,4 +19,4 @@ logsController.get = function (req, res, next) {
}; };
module.exports = logsController; module.exports = logsController;

@ -20,4 +20,4 @@ navigationController.get = function (req, res, next) {
}); });
}; };
module.exports = navigationController; module.exports = navigationController;

@ -53,4 +53,4 @@ pluginsController.get = function (req, res, next) {
}); });
}; };
module.exports = pluginsController; module.exports = pluginsController;

@ -13,4 +13,4 @@ rewardsController.get = function (req, res, next) {
}; };
module.exports = rewardsController; module.exports = rewardsController;

@ -17,4 +17,4 @@ socialController.get = function (req, res, next) {
}); });
}; };
module.exports = socialController; module.exports = socialController;

@ -22,4 +22,4 @@ soundsController.get = function (req, res, next) {
}); });
}; };
module.exports = soundsController; module.exports = soundsController;

@ -22,4 +22,4 @@ themesController.get = function (req, res, next) {
}); });
}; };
module.exports = themesController; module.exports = themesController;

@ -13,4 +13,4 @@ widgetsController.get = function (req, res, next) {
}; };
module.exports = widgetsController; module.exports = widgetsController;

@ -71,4 +71,4 @@ popularController.get = function (req, res, next) {
}); });
}; };
module.exports = popularController; module.exports = popularController;

@ -92,4 +92,4 @@ recentController.get = function (req, res, next) {
}); });
}; };
module.exports = recentController; module.exports = recentController;

@ -65,4 +65,4 @@ sitemapController.getTopicPage = function (req, res, next) {
}); });
}; };
module.exports = sitemapController; module.exports = sitemapController;

@ -11,4 +11,4 @@ if (!databaseName) {
var primaryDB = require('./database/' + databaseName); var primaryDB = require('./database/' + databaseName);
module.exports = primaryDB; module.exports = primaryDB;

@ -244,4 +244,4 @@ module.exports = function (db, module) {
callback(err, result && result.value ? result.value[field] : null); callback(err, result && result.value ? result.value[field] : null);
}); });
}; };
}; };

@ -34,4 +34,4 @@ helpers.valueToString = function (value) {
helpers.noop = function () {}; helpers.noop = function () {};
module.exports = helpers; module.exports = helpers;

@ -100,4 +100,4 @@ module.exports = function (db, module) {
callback(null, data.array); callback(null, data.array);
}); });
}; };
}; };

@ -96,4 +96,4 @@ module.exports = function (db, module) {
module.pexpireAt = function (key, timestamp, callback) { module.pexpireAt = function (key, timestamp, callback) {
module.setObjectField(key, 'expireAt', new Date(timestamp), callback); module.setObjectField(key, 'expireAt', new Date(timestamp), callback);
}; };
}; };

@ -217,4 +217,4 @@ module.exports = function (db, module) {
}); });
}); });
}; };
}; };

@ -62,4 +62,4 @@ module.exports = function (db, module) {
}); });
}; };
}; };

@ -104,4 +104,4 @@ module.exports = function (db, module) {
}); });
} }
}; };

@ -54,4 +54,4 @@ module.exports = function (db, module) {
}); });
}; };
}; };

@ -82,4 +82,4 @@ module.exports = function (db, module) {
}); });
} }
}; };

@ -119,4 +119,4 @@ module.exports = function (redisClient, module) {
module.incrObjectFieldBy = function (key, field, value, callback) { module.incrObjectFieldBy = function (key, field, value, callback) {
redisClient.hincrby(key, field, value, callback); redisClient.hincrby(key, field, value, callback);
}; };
}; };

@ -36,4 +36,4 @@ helpers.resultsToBool = function (results) {
return results; return results;
}; };
module.exports = helpers; module.exports = helpers;

@ -38,4 +38,4 @@ module.exports = function (redisClient, module) {
callback = callback || function () {}; callback = callback || function () {};
redisClient.lrange(key, start, stop, callback); redisClient.lrange(key, start, stop, callback);
}; };
}; };

@ -77,4 +77,4 @@ module.exports = function (redisClient, module) {
}; };
return module; return module;
}; };

@ -46,4 +46,4 @@ module.exports = function (redisClient, module) {
}; };
}; };

@ -76,4 +76,4 @@ module.exports = function (redisClient, module) {
callback(null, objects); callback(null, objects);
}); });
} }
}; };

@ -35,4 +35,4 @@ module.exports = function (redisClient, module) {
callback(err); callback(err);
}); });
}; };
}; };

@ -57,4 +57,4 @@ module.exports = function (redisClient, module) {
callback(null, objects); callback(null, objects);
}); });
}; };
}; };

@ -32,4 +32,4 @@ eventEmitter.any = function (events, callback) {
}); });
}; };
module.exports = eventEmitter; module.exports = eventEmitter;

@ -119,4 +119,4 @@ module.exports = function (Groups) {
db.deleteObjectFields('group:' + data.groupName, ['cover:url', 'cover:thumb:url', 'cover:position'], callback); db.deleteObjectFields('group:' + data.groupName, ['cover:url', 'cover:thumb:url', 'cover:position'], callback);
}; };
}; };

@ -31,4 +31,4 @@ HotSwap.replace = function (id, router) {
} }
}; };
module.exports = HotSwap; module.exports = HotSwap;

@ -117,4 +117,4 @@ module.exports = function (Messaging) {
}); });
db.sortedSetsAdd(keys, timestamp, mid, callback); db.sortedSetsAdd(keys, timestamp, mid, callback);
}; };
}; };

@ -24,4 +24,4 @@ module.exports = function (Messaging) {
}, },
], callback); ], callback);
}; };
}; };

@ -79,4 +79,4 @@ module.exports = function (Messaging) {
], callback); ], callback);
}; };
}; };

@ -121,4 +121,4 @@ module.exports = function (Messaging) {
}); });
}); });
} }
}; };

@ -223,4 +223,4 @@ module.exports = function (Messaging) {
], callback); ], callback);
}; };
}; };

@ -52,4 +52,4 @@ module.exports = function (Messaging) {
], callback); ], callback);
}; };
}; };

@ -123,4 +123,4 @@ Blacklist.validate = function (rules, callback) {
}); });
}; };
module.exports = Blacklist; module.exports = Blacklist;

@ -141,4 +141,4 @@ exports.buildTargets = function (targets, callback) {
} }
}); });
}); });
}; };

@ -26,4 +26,4 @@ module.exports = function (Meta) {
fs.truncate(Meta.logs.path, 0, callback); fs.truncate(Meta.logs.path, 0, callback);
}; };
}; };

@ -62,4 +62,4 @@ module.exports = function (Meta) {
}, },
], callback); ], callback);
}; };
}; };

@ -156,4 +156,4 @@ module.exports = function (Meta) {
}, },
], callback); ], callback);
} }
}; };

@ -146,4 +146,4 @@ function compile(callback) {
}); });
} }
module.exports = Templates; module.exports = Templates;

@ -165,4 +165,4 @@ module.exports = function (Meta) {
nconf.set('theme_templates_path', themePath); nconf.set('theme_templates_path', themePath);
nconf.set('theme_config', path.join(nconf.get('themes_path'), themeObj.id, 'theme.json')); nconf.set('theme_config', path.join(nconf.get('themes_path'), themeObj.id, 'theme.json'));
}; };
}; };

@ -37,4 +37,4 @@ module.exports = function (middleware) {
}); });
}; };
}; };

@ -71,4 +71,4 @@ function getAvailable(callback) {
plugins.fireHook('filter:navigation.available', core, callback); plugins.fireHook('filter:navigation.available', core, callback);
} }
module.exports = admin; module.exports = admin;

@ -38,4 +38,4 @@ navigation.get = function (callback) {
}; };
module.exports = navigation; module.exports = navigation;

@ -76,4 +76,4 @@ pagination.create = function (currentPage, pageCount, queryObj) {
}; };
module.exports = pagination; module.exports = pagination;

@ -30,4 +30,4 @@
} }
return module; return module;
}(exports)); }(exports));

@ -145,4 +145,4 @@ module.exports = function (Plugins) {
Plugins.getActive = function (callback) { Plugins.getActive = function (callback) {
db.getSortedSetRange('plugins:active', 0, -1, callback); db.getSortedSetRange('plugins:active', 0, -1, callback);
}; };
}; };

@ -9,4 +9,4 @@ var cache = LRU({
maxAge: 1000 * 60 * 60, maxAge: 1000 * 60 * 60,
}); });
module.exports = cache; module.exports = cache;

@ -82,4 +82,4 @@ module.exports = function (Posts) {
}); });
} }
}; };
}; };

@ -85,4 +85,4 @@ module.exports = function (Posts) {
], callback); ], callback);
}; };
}; };

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save