mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-26 00:21:16 +01:00
ESlint no-multiple-empty-lines
This commit is contained in:
@@ -92,7 +92,7 @@
|
||||
"import/newline-after-import": "off",
|
||||
"no-underscore-dangle": "off",
|
||||
"prefer-spread": "off",
|
||||
"no-multiple-empty-lines": "off",
|
||||
// "no-multiple-empty-lines": "off",
|
||||
"spaced-comment": "off",
|
||||
"prefer-rest-params": "off",
|
||||
"space-in-parens": "off",
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
|
||||
|
||||
|
||||
define('admin/advanced/events', function () {
|
||||
var Events = {};
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
|
||||
|
||||
define('admin/manage/registration', function () {
|
||||
var Registration = {};
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
|
||||
|
||||
define('admin/manage/users', ['translator'], function (translator) {
|
||||
var Users = {};
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
|
||||
|
||||
define('admin/modules/colorpicker', function () {
|
||||
var colorpicker = {};
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
|
||||
|
||||
define('admin/modules/instance', function () {
|
||||
var instance = {};
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
|
||||
|
||||
define('admin/modules/selectable', ['jqueryui'], function (jqueryui) {
|
||||
var selectable = {};
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('admin/settings/cookies', [
|
||||
'admin/modules/colorpicker',
|
||||
], function (colorpicker) {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/account/best', ['forum/account/header', 'forum/account/posts'], function (header, posts) {
|
||||
var Best = {};
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/account/bookmarks', ['forum/account/header', 'forum/account/posts'], function (header, posts) {
|
||||
var Bookmarks = {};
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/account/downvoted', ['forum/account/header', 'forum/account/posts'], function (header, posts) {
|
||||
var Downvoted = {};
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/account/edit', ['forum/account/header', 'translator', 'components', 'pictureCropper'], function (header, translator, components, pictureCropper) {
|
||||
var AccountEdit = {};
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/account/edit/email', ['forum/account/header'], function (header) {
|
||||
var AccountEditEmail = {};
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/account/edit/password', ['forum/account/header', 'translator'], function (header, translator) {
|
||||
var AccountEditPassword = {};
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/account/edit/username', ['forum/account/header'], function (header) {
|
||||
var AccountEditUsername = {};
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/account/followers', ['forum/account/header'], function (header) {
|
||||
var Followers = {};
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/account/following', ['forum/account/header'], function (header) {
|
||||
var Following = {};
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/account/groups', ['forum/account/header'], function (header) {
|
||||
var AccountTopics = {};
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/account/info', ['forum/account/header', 'components'], function (header, components) {
|
||||
var Info = {};
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/account/posts', ['forum/account/header', 'forum/infinitescroll'], function (header, infinitescroll) {
|
||||
var AccountPosts = {};
|
||||
var method;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/account/profile', [
|
||||
'forum/account/header',
|
||||
'forum/infinitescroll',
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/account/settings', ['forum/account/header', 'components', 'sounds'], function (header, components, sounds) {
|
||||
var AccountSettings = {};
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/account/topics', ['forum/account/header', 'forum/infinitescroll'], function (header, infinitescroll) {
|
||||
var AccountTopics = {};
|
||||
var template;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/account/upvoted', ['forum/account/header', 'forum/account/posts'], function (header, posts) {
|
||||
var Upvoted = {};
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/categories', ['components', 'translator'], function (components, translator) {
|
||||
var categories = {};
|
||||
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
|
||||
define('forum/category/tools', [
|
||||
'forum/topic/move',
|
||||
'topicSelect',
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/chats', [
|
||||
'components',
|
||||
'translator',
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/chats/messages', ['components', 'sounds', 'translator'], function (components, sounds, translator) {
|
||||
|
||||
var messages = {};
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/chats/recent', function () {
|
||||
|
||||
var recent = {};
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/chats/search', ['components'], function (components) {
|
||||
|
||||
var search = {};
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/compose', [], function () {
|
||||
var Compose = {};
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/infinitescroll', function () {
|
||||
|
||||
var scroll = {};
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/notifications', ['components', 'notifications', 'forum/infinitescroll'], function (components, notifs, infinitescroll) {
|
||||
var Notifications = {};
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/popular', ['components'], function (components) {
|
||||
var Popular = {};
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/recent', ['forum/infinitescroll', 'components'], function (infinitescroll, components) {
|
||||
var Recent = {};
|
||||
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
|
||||
define('forum/register', ['translator'], function (translator) {
|
||||
var Register = {};
|
||||
var validationError = false;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/search', ['search', 'autocomplete'], function (searchModule, autocomplete) {
|
||||
var Search = {};
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/tag', ['forum/recent', 'forum/infinitescroll'], function (recent, infinitescroll) {
|
||||
var Tag = {};
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/tags', ['forum/infinitescroll'], function (infinitescroll) {
|
||||
var Tags = {};
|
||||
var timeoutId = 0;
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
|
||||
define('forum/topic', [
|
||||
'forum/infinitescroll',
|
||||
'forum/topic/threadTools',
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/topic/delete-posts', ['components', 'postSelect'], function (components, postSelect) {
|
||||
|
||||
var DeletePosts = {};
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/topic/events', [
|
||||
'forum/topic/postTools',
|
||||
'forum/topic/threadTools',
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/topic/flag', [], function () {
|
||||
|
||||
var Flag = {};
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/topic/fork', ['components', 'postSelect'], function (components, postSelect) {
|
||||
|
||||
var Fork = {};
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/topic/move-post', [], function () {
|
||||
|
||||
var MovePost = {};
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/topic/move', function () {
|
||||
|
||||
var Move = {};
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/topic/postTools', [
|
||||
'share',
|
||||
'navigator',
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/topic/posts', [
|
||||
'forum/pagination',
|
||||
'forum/infinitescroll',
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/topic/replies', ['navigator', 'components', 'forum/topic/posts'], function (navigator, components, posts) {
|
||||
|
||||
var Replies = {};
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/topic/threadTools', [
|
||||
'forum/topic/fork',
|
||||
'forum/topic/move',
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/topic/votes', ['components', 'translator'], function (components, translator) {
|
||||
|
||||
var Votes = {};
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/unread', ['forum/recent', 'topicSelect', 'forum/infinitescroll', 'components'], function (recent, topicSelect, infinitescroll, components) {
|
||||
var Unread = {};
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('forum/users', ['translator'], function (translator) {
|
||||
var Users = {};
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@ $('document').ready(function () {
|
||||
$('#launch').on('click', launchForum);
|
||||
|
||||
|
||||
|
||||
function setupInputs() {
|
||||
$('form').on('focus', '.form-control', function () {
|
||||
var parent = $(this).parents('.input-row');
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('autocomplete', function () {
|
||||
var module = {};
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
|
||||
|
||||
define('iconSelect', function () {
|
||||
var iconSelect = {};
|
||||
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
|
||||
define('navigator', ['forum/pagination', 'components'], function (pagination, components) {
|
||||
|
||||
var navigator = {};
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('notifications', ['sounds', 'translator', 'components'], function (sound, translator, components) {
|
||||
var Notifications = {};
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('pictureCropper', ['translator', 'cropper'], function (translator, cropper) {
|
||||
var module = {};
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('postSelect', ['components'], function (components) {
|
||||
var PostSelect = {};
|
||||
|
||||
@@ -54,6 +53,5 @@ define('postSelect', ['components'], function (components) {
|
||||
};
|
||||
|
||||
|
||||
|
||||
return PostSelect;
|
||||
});
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
/*
|
||||
The point of this library is to enhance(tm) a textarea so that if scrolled,
|
||||
you can only scroll to the top of it and the event doesn't bubble up to
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('share', function () {
|
||||
|
||||
var module = {};
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('topicSelect', ['components'], function (components) {
|
||||
var TopicSelect = {};
|
||||
var lastSelected;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
define('uploader', ['translator'], function (translator) {
|
||||
|
||||
var module = {};
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
var overrides = overrides || {};
|
||||
|
||||
if ('undefined' !== typeof window) {
|
||||
|
||||
@@ -248,4 +248,3 @@ module.exports = function (Categories) {
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -114,5 +114,4 @@ chatsController.redirectToChat = function (req, res, next) {
|
||||
};
|
||||
|
||||
|
||||
|
||||
module.exports = chatsController;
|
||||
@@ -6,7 +6,6 @@ var nconf = require('nconf');
|
||||
var databaseController = {};
|
||||
|
||||
|
||||
|
||||
databaseController.get = function (req, res, next) {
|
||||
async.parallel({
|
||||
redis: function (next) {
|
||||
|
||||
@@ -13,5 +13,4 @@ rewardsController.get = function (req, res, next) {
|
||||
};
|
||||
|
||||
|
||||
|
||||
module.exports = rewardsController;
|
||||
@@ -248,5 +248,4 @@ function deleteTempFiles(files) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
module.exports = uploadsController;
|
||||
|
||||
@@ -187,5 +187,3 @@ module.exports = function (middleware) {
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -36,5 +36,3 @@ module.exports = function (middleware) {
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
|
||||
|
||||
var async = require('async');
|
||||
var plugins = require('../plugins');
|
||||
var db = require('../database');
|
||||
|
||||
@@ -115,4 +115,3 @@ module.exports = function (Posts) {
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -401,4 +401,3 @@ function sendFeed(feed, res) {
|
||||
res.type('xml').set('Content-Length', Buffer.byteLength(xml)).send(xml);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -244,4 +244,3 @@ Sockets.reqFromSocket = function (socket, payload, event) {
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
|
||||
|
||||
var db = require('./database');
|
||||
var async = require('async');
|
||||
var winston = require('winston');
|
||||
|
||||
@@ -284,4 +284,3 @@ module.exports.testSocket = function (socketPath, callback) {
|
||||
], callback);
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
var async = require('async');
|
||||
var assert = require('assert');
|
||||
var nconf = require('nconf');
|
||||
|
||||
@@ -46,7 +46,6 @@ describe('Controllers', function () {
|
||||
});
|
||||
|
||||
|
||||
|
||||
it('should load default home route', function (done) {
|
||||
request(nconf.get('url'), function (err, res, body) {
|
||||
assert.ifError(err);
|
||||
|
||||
@@ -391,7 +391,6 @@ describe('Hash methods', function () {
|
||||
});
|
||||
|
||||
|
||||
|
||||
after(function (done) {
|
||||
db.emptydb(done);
|
||||
});
|
||||
|
||||
@@ -183,7 +183,6 @@ describe('meta', function () {
|
||||
});
|
||||
|
||||
|
||||
|
||||
after(function (done) {
|
||||
db.emptydb(done);
|
||||
});
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
|
||||
var assert = require('assert');
|
||||
var async = require('async');
|
||||
|
||||
|
||||
@@ -181,6 +181,5 @@ describe('Plugins', function () {
|
||||
});
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
@@ -76,10 +76,6 @@ describe('rewards', function () {
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
after(function (done) {
|
||||
db.emptydb(done);
|
||||
});
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
// see https://gist.github.com/jfromaniello/4087861#gistcomment-1447029
|
||||
|
||||
|
||||
|
||||
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
|
||||
|
||||
var assert = require('assert');
|
||||
@@ -254,7 +253,6 @@ describe('socket.io', function () {
|
||||
});
|
||||
|
||||
|
||||
|
||||
describe('validation emails', function () {
|
||||
var socketAdmin = require('../src/socket.io/admin');
|
||||
var meta = require('../src/meta');
|
||||
|
||||
@@ -159,8 +159,6 @@ describe('Upload Controllers', function () {
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
after(function (done) {
|
||||
db.emptydb(done);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user