ESlint no-multiple-empty-lines

v1.18.x
Peter Jaszkowiak 8 years ago
parent b09b3aef7f
commit 52f2028206

@ -92,7 +92,7 @@
"import/newline-after-import": "off", "import/newline-after-import": "off",
"no-underscore-dangle": "off", "no-underscore-dangle": "off",
"prefer-spread": "off", "prefer-spread": "off",
"no-multiple-empty-lines": "off", // "no-multiple-empty-lines": "off",
"spaced-comment": "off", "spaced-comment": "off",
"prefer-rest-params": "off", "prefer-rest-params": "off",
"space-in-parens": "off", "space-in-parens": "off",

@ -1,8 +1,6 @@
"use strict"; "use strict";
define('admin/advanced/events', function () { define('admin/advanced/events', function () {
var Events = {}; var Events = {};

@ -1,7 +1,6 @@
"use strict"; "use strict";
define('admin/manage/registration', function () { define('admin/manage/registration', function () {
var Registration = {}; var Registration = {};

@ -1,7 +1,6 @@
"use strict"; "use strict";
define('admin/manage/users', ['translator'], function (translator) { define('admin/manage/users', ['translator'], function (translator) {
var Users = {}; var Users = {};

@ -1,7 +1,6 @@
"use strict"; "use strict";
define('admin/modules/colorpicker', function () { define('admin/modules/colorpicker', function () {
var colorpicker = {}; var colorpicker = {};

@ -1,7 +1,6 @@
"use strict"; "use strict";
define('admin/modules/instance', function () { define('admin/modules/instance', function () {
var instance = {}; var instance = {};

@ -1,7 +1,6 @@
"use strict"; "use strict";
define('admin/modules/selectable', ['jqueryui'], function (jqueryui) { define('admin/modules/selectable', ['jqueryui'], function (jqueryui) {
var selectable = {}; var selectable = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('admin/settings/cookies', [ define('admin/settings/cookies', [
'admin/modules/colorpicker', 'admin/modules/colorpicker',
], function (colorpicker) { ], function (colorpicker) {

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/account/best', ['forum/account/header', 'forum/account/posts'], function (header, posts) { define('forum/account/best', ['forum/account/header', 'forum/account/posts'], function (header, posts) {
var Best = {}; var Best = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/account/bookmarks', ['forum/account/header', 'forum/account/posts'], function (header, posts) { define('forum/account/bookmarks', ['forum/account/header', 'forum/account/posts'], function (header, posts) {
var Bookmarks = {}; var Bookmarks = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/account/downvoted', ['forum/account/header', 'forum/account/posts'], function (header, posts) { define('forum/account/downvoted', ['forum/account/header', 'forum/account/posts'], function (header, posts) {
var Downvoted = {}; var Downvoted = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/account/edit', ['forum/account/header', 'translator', 'components', 'pictureCropper'], function (header, translator, components, pictureCropper) { define('forum/account/edit', ['forum/account/header', 'translator', 'components', 'pictureCropper'], function (header, translator, components, pictureCropper) {
var AccountEdit = {}; var AccountEdit = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/account/edit/email', ['forum/account/header'], function (header) { define('forum/account/edit/email', ['forum/account/header'], function (header) {
var AccountEditEmail = {}; var AccountEditEmail = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/account/edit/password', ['forum/account/header', 'translator'], function (header, translator) { define('forum/account/edit/password', ['forum/account/header', 'translator'], function (header, translator) {
var AccountEditPassword = {}; var AccountEditPassword = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/account/edit/username', ['forum/account/header'], function (header) { define('forum/account/edit/username', ['forum/account/header'], function (header) {
var AccountEditUsername = {}; var AccountEditUsername = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/account/followers', ['forum/account/header'], function (header) { define('forum/account/followers', ['forum/account/header'], function (header) {
var Followers = {}; var Followers = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/account/following', ['forum/account/header'], function (header) { define('forum/account/following', ['forum/account/header'], function (header) {
var Following = {}; var Following = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/account/groups', ['forum/account/header'], function (header) { define('forum/account/groups', ['forum/account/header'], function (header) {
var AccountTopics = {}; var AccountTopics = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/account/info', ['forum/account/header', 'components'], function (header, components) { define('forum/account/info', ['forum/account/header', 'components'], function (header, components) {
var Info = {}; var Info = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/account/posts', ['forum/account/header', 'forum/infinitescroll'], function (header, infinitescroll) { define('forum/account/posts', ['forum/account/header', 'forum/infinitescroll'], function (header, infinitescroll) {
var AccountPosts = {}; var AccountPosts = {};
var method; var method;

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/account/profile', [ define('forum/account/profile', [
'forum/account/header', 'forum/account/header',
'forum/infinitescroll', 'forum/infinitescroll',

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/account/settings', ['forum/account/header', 'components', 'sounds'], function (header, components, sounds) { define('forum/account/settings', ['forum/account/header', 'components', 'sounds'], function (header, components, sounds) {
var AccountSettings = {}; var AccountSettings = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/account/topics', ['forum/account/header', 'forum/infinitescroll'], function (header, infinitescroll) { define('forum/account/topics', ['forum/account/header', 'forum/infinitescroll'], function (header, infinitescroll) {
var AccountTopics = {}; var AccountTopics = {};
var template; var template;

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/account/upvoted', ['forum/account/header', 'forum/account/posts'], function (header, posts) { define('forum/account/upvoted', ['forum/account/header', 'forum/account/posts'], function (header, posts) {
var Upvoted = {}; var Upvoted = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/categories', ['components', 'translator'], function (components, translator) { define('forum/categories', ['components', 'translator'], function (components, translator) {
var categories = {}; var categories = {};

@ -2,8 +2,6 @@
'use strict'; 'use strict';
define('forum/category/tools', [ define('forum/category/tools', [
'forum/topic/move', 'forum/topic/move',
'topicSelect', 'topicSelect',

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/chats', [ define('forum/chats', [
'components', 'components',
'translator', 'translator',

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/chats/messages', ['components', 'sounds', 'translator'], function (components, sounds, translator) { define('forum/chats/messages', ['components', 'sounds', 'translator'], function (components, sounds, translator) {
var messages = {}; var messages = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/chats/recent', function () { define('forum/chats/recent', function () {
var recent = {}; var recent = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/chats/search', ['components'], function (components) { define('forum/chats/search', ['components'], function (components) {
var search = {}; var search = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/compose', [], function () { define('forum/compose', [], function () {
var Compose = {}; var Compose = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/infinitescroll', function () { define('forum/infinitescroll', function () {
var scroll = {}; var scroll = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/notifications', ['components', 'notifications', 'forum/infinitescroll'], function (components, notifs, infinitescroll) { define('forum/notifications', ['components', 'notifications', 'forum/infinitescroll'], function (components, notifs, infinitescroll) {
var Notifications = {}; var Notifications = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/popular', ['components'], function (components) { define('forum/popular', ['components'], function (components) {
var Popular = {}; var Popular = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/recent', ['forum/infinitescroll', 'components'], function (infinitescroll, components) { define('forum/recent', ['forum/infinitescroll', 'components'], function (infinitescroll, components) {
var Recent = {}; var Recent = {};

@ -1,8 +1,6 @@
'use strict'; 'use strict';
define('forum/register', ['translator'], function (translator) { define('forum/register', ['translator'], function (translator) {
var Register = {}; var Register = {};
var validationError = false; var validationError = false;

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/search', ['search', 'autocomplete'], function (searchModule, autocomplete) { define('forum/search', ['search', 'autocomplete'], function (searchModule, autocomplete) {
var Search = {}; var Search = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/tag', ['forum/recent', 'forum/infinitescroll'], function (recent, infinitescroll) { define('forum/tag', ['forum/recent', 'forum/infinitescroll'], function (recent, infinitescroll) {
var Tag = {}; var Tag = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/tags', ['forum/infinitescroll'], function (infinitescroll) { define('forum/tags', ['forum/infinitescroll'], function (infinitescroll) {
var Tags = {}; var Tags = {};
var timeoutId = 0; var timeoutId = 0;

@ -1,8 +1,6 @@
'use strict'; 'use strict';
define('forum/topic', [ define('forum/topic', [
'forum/infinitescroll', 'forum/infinitescroll',
'forum/topic/threadTools', 'forum/topic/threadTools',

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/topic/delete-posts', ['components', 'postSelect'], function (components, postSelect) { define('forum/topic/delete-posts', ['components', 'postSelect'], function (components, postSelect) {
var DeletePosts = {}; var DeletePosts = {};

@ -2,7 +2,6 @@
'use strict'; 'use strict';
define('forum/topic/events', [ define('forum/topic/events', [
'forum/topic/postTools', 'forum/topic/postTools',
'forum/topic/threadTools', 'forum/topic/threadTools',

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/topic/flag', [], function () { define('forum/topic/flag', [], function () {
var Flag = {}; var Flag = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/topic/fork', ['components', 'postSelect'], function (components, postSelect) { define('forum/topic/fork', ['components', 'postSelect'], function (components, postSelect) {
var Fork = {}; var Fork = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/topic/move-post', [], function () { define('forum/topic/move-post', [], function () {
var MovePost = {}; var MovePost = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/topic/move', function () { define('forum/topic/move', function () {
var Move = {}; var Move = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/topic/postTools', [ define('forum/topic/postTools', [
'share', 'share',
'navigator', 'navigator',

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/topic/posts', [ define('forum/topic/posts', [
'forum/pagination', 'forum/pagination',
'forum/infinitescroll', 'forum/infinitescroll',

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/topic/replies', ['navigator', 'components', 'forum/topic/posts'], function (navigator, components, posts) { define('forum/topic/replies', ['navigator', 'components', 'forum/topic/posts'], function (navigator, components, posts) {
var Replies = {}; var Replies = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/topic/threadTools', [ define('forum/topic/threadTools', [
'forum/topic/fork', 'forum/topic/fork',
'forum/topic/move', 'forum/topic/move',

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/topic/votes', ['components', 'translator'], function (components, translator) { define('forum/topic/votes', ['components', 'translator'], function (components, translator) {
var Votes = {}; var Votes = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/unread', ['forum/recent', 'topicSelect', 'forum/infinitescroll', 'components'], function (recent, topicSelect, infinitescroll, components) { define('forum/unread', ['forum/recent', 'topicSelect', 'forum/infinitescroll', 'components'], function (recent, topicSelect, infinitescroll, components) {
var Unread = {}; var Unread = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('forum/users', ['translator'], function (translator) { define('forum/users', ['translator'], function (translator) {
var Users = {}; var Users = {};

@ -17,7 +17,6 @@ $('document').ready(function () {
$('#launch').on('click', launchForum); $('#launch').on('click', launchForum);
function setupInputs() { function setupInputs() {
$('form').on('focus', '.form-control', function () { $('form').on('focus', '.form-control', function () {
var parent = $(this).parents('.input-row'); var parent = $(this).parents('.input-row');

@ -2,7 +2,6 @@
'use strict'; 'use strict';
define('autocomplete', function () { define('autocomplete', function () {
var module = {}; var module = {};

@ -1,7 +1,6 @@
"use strict"; "use strict";
define('iconSelect', function () { define('iconSelect', function () {
var iconSelect = {}; var iconSelect = {};

@ -2,8 +2,6 @@
'use strict'; 'use strict';
define('navigator', ['forum/pagination', 'components'], function (pagination, components) { define('navigator', ['forum/pagination', 'components'], function (pagination, components) {
var navigator = {}; var navigator = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('notifications', ['sounds', 'translator', 'components'], function (sound, translator, components) { define('notifications', ['sounds', 'translator', 'components'], function (sound, translator, components) {
var Notifications = {}; var Notifications = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('pictureCropper', ['translator', 'cropper'], function (translator, cropper) { define('pictureCropper', ['translator', 'cropper'], function (translator, cropper) {
var module = {}; var module = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('postSelect', ['components'], function (components) { define('postSelect', ['components'], function (components) {
var PostSelect = {}; var PostSelect = {};
@ -54,6 +53,5 @@ define('postSelect', ['components'], function (components) {
}; };
return PostSelect; return PostSelect;
}); });

@ -1,7 +1,6 @@
'use strict'; 'use strict';
/* /*
The point of this library is to enhance(tm) a textarea so that if scrolled, 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 you can only scroll to the top of it and the event doesn't bubble up to

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('share', function () { define('share', function () {
var module = {}; var module = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('topicSelect', ['components'], function (components) { define('topicSelect', ['components'], function (components) {
var TopicSelect = {}; var TopicSelect = {};
var lastSelected; var lastSelected;

@ -1,7 +1,6 @@
'use strict'; 'use strict';
define('uploader', ['translator'], function (translator) { define('uploader', ['translator'], function (translator) {
var module = {}; var module = {};

@ -1,7 +1,6 @@
'use strict'; 'use strict';
var overrides = overrides || {}; var overrides = overrides || {};
if ('undefined' !== typeof window) { 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; module.exports = chatsController;

@ -6,7 +6,6 @@ var nconf = require('nconf');
var databaseController = {}; var databaseController = {};
databaseController.get = function (req, res, next) { databaseController.get = function (req, res, next) {
async.parallel({ async.parallel({
redis: function (next) { redis: function (next) {

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

@ -248,5 +248,4 @@ function deleteTempFiles(files) {
} }
module.exports = uploadsController; 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"; "use strict";
var async = require('async'); var async = require('async');
var plugins = require('../plugins'); var plugins = require('../plugins');
var db = require('../database'); 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); 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"; "use strict";
var db = require('./database'); var db = require('./database');
var async = require('async'); var async = require('async');
var winston = require('winston'); var winston = require('winston');

@ -284,4 +284,3 @@ module.exports.testSocket = function (socketPath, callback) {
], callback); ], callback);
}; };

@ -1,7 +1,6 @@
'use strict'; 'use strict';
var async = require('async'); var async = require('async');
var assert = require('assert'); var assert = require('assert');
var nconf = require('nconf'); var nconf = require('nconf');

@ -46,7 +46,6 @@ describe('Controllers', function () {
}); });
it('should load default home route', function (done) { it('should load default home route', function (done) {
request(nconf.get('url'), function (err, res, body) { request(nconf.get('url'), function (err, res, body) {
assert.ifError(err); assert.ifError(err);

@ -391,7 +391,6 @@ describe('Hash methods', function () {
}); });
after(function (done) { after(function (done) {
db.emptydb(done); db.emptydb(done);
}); });

@ -183,7 +183,6 @@ describe('meta', function () {
}); });
after(function (done) { after(function (done) {
db.emptydb(done); db.emptydb(done);
}); });

@ -1,7 +1,6 @@
'use strict'; 'use strict';
var assert = require('assert'); var assert = require('assert');
var async = require('async'); var async = require('async');

@ -181,6 +181,5 @@ describe('Plugins', function () {
}); });
}); });

@ -76,10 +76,6 @@ describe('rewards', function () {
}); });
after(function (done) { after(function (done) {
db.emptydb(done); db.emptydb(done);
}); });

@ -3,7 +3,6 @@
// see https://gist.github.com/jfromaniello/4087861#gistcomment-1447029 // see https://gist.github.com/jfromaniello/4087861#gistcomment-1447029
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"; process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
var assert = require('assert'); var assert = require('assert');
@ -254,7 +253,6 @@ describe('socket.io', function () {
}); });
describe('validation emails', function () { describe('validation emails', function () {
var socketAdmin = require('../src/socket.io/admin'); var socketAdmin = require('../src/socket.io/admin');
var meta = require('../src/meta'); var meta = require('../src/meta');

@ -159,8 +159,6 @@ describe('Upload Controllers', function () {
}); });
after(function (done) { after(function (done) {
db.emptydb(done); db.emptydb(done);
}); });

Loading…
Cancel
Save