Browse Source

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
master
msmol 2 years ago
parent
commit
99c529ad47
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      .eslintrc

+ 6
- 6
.eslintrc View File

@@ -198,6 +198,12 @@ rules:
198 198
   # http://eslint.org/docs/rules/no-unexpected-multiline
199 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 208
   # Best Practices
203 209
   #############################################################################
@@ -861,12 +867,6 @@ rules:
861 867
    - 2
862 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 870
   # require or disallow spaces inside parentheses
871 871
   # http://eslint.org/docs/rules/space-in-parens
872 872
   space-in-parens:

Loading…
Cancel
Save