ESlint eol-last

This commit is contained in:
Peter Jaszkowiak
2017-02-18 02:30:48 -07:00
parent 41896e1fc7
commit feb8405f95
142 changed files with 142 additions and 142 deletions

View File

@@ -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",

View File

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

View File

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

View File

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

View File

@@ -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;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -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'));
};
};
};

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -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