summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormsmol <msmolash@internap.com>2016-10-04 11:25:49 -0400
committerCorentin Ardeois <corentin.ardeois@gmail.com>2016-10-27 13:44:24 +0000
commit99c529ad47cb8811996c021b8a4126841e49a7f4 (patch)
treec7b02387a98e489a6372b12a78a5c6005ffd3ab0
parentade27364a53084ac7ad6fbd9e6bd5daddcdd7523 (diff)
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
Notes
Notes (review): Code-Review+1: Vitaly Kramskikh <vkramskikh@mirantis.com> Code-Review+1: Corentin Ardeois <corentin.ardeois@gmail.com> Code-Review+1: Dong Ma <winterma.dong@gmail.com> Code-Review+1: Yujun Zhang <zhang.yujunz@zte.com.cn> Code-Review+2: Michael Krotscheck <krotscheck@gmail.com> Workflow+1: Michael Krotscheck <krotscheck@gmail.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Wed, 02 Nov 2016 16:35:28 +0000 Reviewed-on: https://review.openstack.org/381929 Project: openstack/eslint-config-openstack Branch: refs/heads/master
-rw-r--r--.eslintrc12
1 files changed, 6 insertions, 6 deletions
diff --git a/.eslintrc b/.eslintrc
index d708219..21a99e9 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -198,6 +198,12 @@ rules:
198 # http://eslint.org/docs/rules/no-unexpected-multiline 198 # http://eslint.org/docs/rules/no-unexpected-multiline
199 no-unexpected-multiline: 0 199 no-unexpected-multiline: 0
200 200
201 # Disallow space before function opening parenthesis
202 # http://eslint.org/docs/rules/space-before-function-paren
203 space-before-function-paren:
204 - 2
205 - "never"
206
201 ############################################################################# 207 #############################################################################
202 # Best Practices 208 # Best Practices
203 ############################################################################# 209 #############################################################################
@@ -861,12 +867,6 @@ rules:
861 - 2 867 - 2
862 - "always" 868 - "always"
863 869
864 # Require or disallow space before function opening parenthesis
865 # http://eslint.org/docs/rules/space-before-function-paren
866 space-before-function-paren:
867 - 0
868 - "always"
869
870 # require or disallow spaces inside parentheses 870 # require or disallow spaces inside parentheses
871 # http://eslint.org/docs/rules/space-in-parens 871 # http://eslint.org/docs/rules/space-in-parens
872 space-in-parens: 872 space-in-parens: