From 99c529ad47cb8811996c021b8a4126841e49a7f4 Mon Sep 17 00:00:00 2001 From: msmol Date: Tue, 4 Oct 2016 11:25:49 -0400 Subject: [PATCH] Disallow space between a function & opening paren This rule was adopted in js-openstack-lib and I propose we adopt it here as well. Whether we enforce a space or no space, so long as it is consistent. Change-Id: I5881b46ea16112729f2327484e56bcb138e0c386 --- .eslintrc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.eslintrc b/.eslintrc index d708219..21a99e9 100644 --- a/.eslintrc +++ b/.eslintrc @@ -198,6 +198,12 @@ rules: # http://eslint.org/docs/rules/no-unexpected-multiline no-unexpected-multiline: 0 + # Disallow space before function opening parenthesis + # http://eslint.org/docs/rules/space-before-function-paren + space-before-function-paren: + - 2 + - "never" + ############################################################################# # Best Practices ############################################################################# @@ -861,12 +867,6 @@ rules: - 2 - "always" - # Require or disallow space before function opening parenthesis - # http://eslint.org/docs/rules/space-before-function-paren - space-before-function-paren: - - 0 - - "always" - # require or disallow spaces inside parentheses # http://eslint.org/docs/rules/space-in-parens space-in-parens: