From 41896e1fc75ac8e825771937ac075500cec21a9d Mon Sep 17 00:00:00 2001
From: Peter Jaszkowiak
Date: Sat, 18 Feb 2017 02:28:54 -0700
Subject: [PATCH] ESlint lines-around-directive
---
.eslintrc | 18 +++++++++---------
public/src/modules/components.js | 1 +
src/middleware/ratelimit.js | 3 +--
src/socket.io/modules.js | 1 +
4 files changed, 12 insertions(+), 11 deletions(-)
diff --git a/.eslintrc b/.eslintrc
index 62762f2426..a2008ce6cd 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -20,6 +20,7 @@
"no-console": "off",
"no-mixed-operators": ["error", { "allowSamePrecedence": true }],
"strict": ["error", "global"],
+ "consistent-return": "off",
// ES6
"prefer-rest-params": "off",
@@ -33,11 +34,17 @@
"import/newline-after-import": "off",
"no-bitwise": "off",
"global-require": "off",
+ "no-multi-assign": "off",
+ "max-len": "off",
+ "no-param-reassign": "off",
+ "object-shorthand": "off",
+ "no-prototype-builtins": "off",
+ "vars-on-top": "off",
+ "no-restricted-syntax": "off",
// "linebreak-style": "off",
// "one-var": "off",
// "no-undef": "off",
- "max-len": "off",
"no-new": "off",
"max-nested-callbacks": "off",
"no-mixed-requires": "off",
@@ -92,14 +99,7 @@
"prefer-template": "off",
"padded-blocks": "off",
"eol-last": "off",
- "lines-around-directive": "off",
- "no-restricted-syntax": "off",
- "vars-on-top": "off",
- "no-prototype-builtins": "off",
- "object-shorthand": "off",
- "no-param-reassign": "off",
- "consistent-return": "off",
- "no-multi-assign": "off",
+ // "lines-around-directive": "off",
// "strict": "off",
// "comma-dangle": "off",
// "no-multi-spaces": "off",
diff --git a/public/src/modules/components.js b/public/src/modules/components.js
index 14bf2791b3..9ddec2b7a9 100644
--- a/public/src/modules/components.js
+++ b/public/src/modules/components.js
@@ -1,4 +1,5 @@
'use strict';
+
define('components', function () {
var components = {};
diff --git a/src/middleware/ratelimit.js b/src/middleware/ratelimit.js
index 878deb2727..504cb0acd7 100644
--- a/src/middleware/ratelimit.js
+++ b/src/middleware/ratelimit.js
@@ -1,6 +1,5 @@
-
-
'use strict';
+
var winston = require('winston');
var ratelimit = module.exports;
diff --git a/src/socket.io/modules.js b/src/socket.io/modules.js
index a3571c5906..64f8fd0a5a 100644
--- a/src/socket.io/modules.js
+++ b/src/socket.io/modules.js
@@ -1,4 +1,5 @@
'use strict';
+
var async = require('async');
var validator = require('validator');