mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
ESlint eol-last
This commit is contained in:
@@ -98,7 +98,7 @@
|
||||
"no-shadow": "off",
|
||||
"prefer-template": "off",
|
||||
"padded-blocks": "off",
|
||||
"eol-last": "off",
|
||||
// "eol-last": "off",
|
||||
// "lines-around-directive": "off",
|
||||
// "strict": "off",
|
||||
// "comma-dangle": "off",
|
||||
|
||||
@@ -143,4 +143,4 @@ module.exports = function (grunt) {
|
||||
|
||||
worker = fork('app.js', args, { env: env });
|
||||
grunt.event.on('watch', update);
|
||||
};
|
||||
};
|
||||
|
||||
@@ -31,4 +31,4 @@ function done(err, result) {
|
||||
}
|
||||
process.send({result: result});
|
||||
process.disconnect();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -79,4 +79,4 @@ function saveDatabaseConfig(config, databaseConfig, callback) {
|
||||
}
|
||||
|
||||
callback(null, config);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -157,4 +157,4 @@ function compileJS(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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -230,4 +230,4 @@
|
||||
});
|
||||
});
|
||||
}
|
||||
}());
|
||||
}());
|
||||
|
||||
@@ -110,4 +110,4 @@ define('admin/advanced/errors', ['Chart', 'translator'], function (Chart, transl
|
||||
};
|
||||
|
||||
return Errors;
|
||||
});
|
||||
});
|
||||
|
||||
@@ -207,4 +207,4 @@ define('admin/manage/categories', ['vendor/jquery/serializeObject/jquery.ba-seri
|
||||
}
|
||||
|
||||
return Categories;
|
||||
});
|
||||
});
|
||||
|
||||
@@ -166,4 +166,4 @@ define('admin/manage/category-analytics', ['Chart'], function (Chart) {
|
||||
};
|
||||
|
||||
return CategoryAnalytics;
|
||||
});
|
||||
});
|
||||
|
||||
@@ -480,4 +480,4 @@ define('admin/manage/category', [
|
||||
|
||||
|
||||
return Category;
|
||||
});
|
||||
});
|
||||
|
||||
@@ -173,4 +173,4 @@ define('admin/manage/flags', [
|
||||
}
|
||||
|
||||
return Flags;
|
||||
});
|
||||
});
|
||||
|
||||
@@ -41,4 +41,4 @@ define('admin/manage/ip-blacklist', ['translator'], function (translator) {
|
||||
};
|
||||
|
||||
return Blacklist;
|
||||
});
|
||||
});
|
||||
|
||||
@@ -169,4 +169,4 @@ define('admin/manage/tags', [
|
||||
}
|
||||
|
||||
return Tags;
|
||||
});
|
||||
});
|
||||
|
||||
@@ -150,4 +150,4 @@ define('admin/modules/search', ['mousetrap'], function (mousetrap) {
|
||||
}
|
||||
|
||||
return search;
|
||||
});
|
||||
});
|
||||
|
||||
@@ -21,4 +21,4 @@ define('admin/settings/cookies', [
|
||||
};
|
||||
|
||||
return Module;
|
||||
});
|
||||
});
|
||||
|
||||
@@ -423,4 +423,4 @@ $(document).ready(function () {
|
||||
$(this).parent().remove();
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
@@ -54,4 +54,4 @@ define('forum/chats/recent', function () {
|
||||
|
||||
|
||||
return recent;
|
||||
});
|
||||
});
|
||||
|
||||
@@ -94,4 +94,4 @@ define('forum/groups/memberlist', ['components', 'forum/infinitescroll'], functi
|
||||
}
|
||||
|
||||
return MemberList;
|
||||
});
|
||||
});
|
||||
|
||||
@@ -88,4 +88,4 @@ define('forum/infinitescroll', function () {
|
||||
};
|
||||
|
||||
return scroll;
|
||||
});
|
||||
});
|
||||
|
||||
@@ -123,4 +123,4 @@ $('document').ready(function () {
|
||||
}, 750);
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -86,4 +86,4 @@ define('coverPhoto', [
|
||||
};
|
||||
|
||||
return coverPhoto;
|
||||
});
|
||||
});
|
||||
|
||||
@@ -54,4 +54,4 @@ define('postSelect', ['components'], function (components) {
|
||||
|
||||
|
||||
return PostSelect;
|
||||
});
|
||||
});
|
||||
|
||||
@@ -28,4 +28,4 @@ define('scrollStop', function () {
|
||||
};
|
||||
|
||||
return Module;
|
||||
});
|
||||
});
|
||||
|
||||
@@ -127,4 +127,4 @@ define('uploader', ['translator'], function (translator) {
|
||||
}
|
||||
|
||||
return module;
|
||||
});
|
||||
});
|
||||
|
||||
@@ -125,4 +125,4 @@ app.isConnected = false;
|
||||
window.location.href = config.relative_path + '/';
|
||||
}
|
||||
|
||||
}());
|
||||
}());
|
||||
|
||||
@@ -112,4 +112,4 @@ module.exports = function (Categories) {
|
||||
db.incrObjectFieldBy('category:' + cid, field, value, callback);
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
@@ -104,4 +104,4 @@ module.exports = function (Categories) {
|
||||
callback(err);
|
||||
});
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -54,4 +54,4 @@ module.exports = function (Categories) {
|
||||
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);
|
||||
}
|
||||
|
||||
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', {});
|
||||
};
|
||||
|
||||
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);
|
||||
|
||||
module.exports = primaryDB;
|
||||
module.exports = primaryDB;
|
||||
|
||||
@@ -244,4 +244,4 @@ module.exports = function (db, module) {
|
||||
callback(err, result && result.value ? result.value[field] : null);
|
||||
});
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -34,4 +34,4 @@ helpers.valueToString = function (value) {
|
||||
|
||||
helpers.noop = function () {};
|
||||
|
||||
module.exports = helpers;
|
||||
module.exports = helpers;
|
||||
|
||||
@@ -100,4 +100,4 @@ module.exports = function (db, module) {
|
||||
callback(null, data.array);
|
||||
});
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -96,4 +96,4 @@ module.exports = function (db, module) {
|
||||
module.pexpireAt = function (key, 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) {
|
||||
redisClient.hincrby(key, field, value, callback);
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -36,4 +36,4 @@ helpers.resultsToBool = function (results) {
|
||||
return results;
|
||||
};
|
||||
|
||||
module.exports = helpers;
|
||||
module.exports = helpers;
|
||||
|
||||
@@ -38,4 +38,4 @@ module.exports = function (redisClient, module) {
|
||||
callback = callback || function () {};
|
||||
redisClient.lrange(key, start, stop, callback);
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -77,4 +77,4 @@ module.exports = function (redisClient, module) {
|
||||
};
|
||||
|
||||
return module;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -46,4 +46,4 @@ module.exports = function (redisClient, module) {
|
||||
};
|
||||
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
@@ -76,4 +76,4 @@ module.exports = function (redisClient, module) {
|
||||
callback(null, objects);
|
||||
});
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -35,4 +35,4 @@ module.exports = function (redisClient, module) {
|
||||
callback(err);
|
||||
});
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -57,4 +57,4 @@ module.exports = function (redisClient, module) {
|
||||
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);
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -24,4 +24,4 @@ module.exports = function (Messaging) {
|
||||
},
|
||||
], callback);
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -79,4 +79,4 @@ module.exports = function (Messaging) {
|
||||
], callback);
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
@@ -121,4 +121,4 @@ module.exports = function (Messaging) {
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -223,4 +223,4 @@ module.exports = function (Messaging) {
|
||||
], callback);
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
@@ -52,4 +52,4 @@ module.exports = function (Messaging) {
|
||||
], 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);
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
@@ -62,4 +62,4 @@ module.exports = function (Meta) {
|
||||
},
|
||||
], callback);
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -156,4 +156,4 @@ module.exports = function (Meta) {
|
||||
},
|
||||
], 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_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);
|
||||
}
|
||||
|
||||
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;
|
||||
}(exports));
|
||||
}(exports));
|
||||
|
||||
@@ -145,4 +145,4 @@ module.exports = function (Plugins) {
|
||||
Plugins.getActive = function (callback) {
|
||||
db.getSortedSetRange('plugins:active', 0, -1, callback);
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -9,4 +9,4 @@ var cache = LRU({
|
||||
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);
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user