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
changes/29/381929/4
msmol 5 years ago
committed by Corentin Ardeois
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:
# 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:


Loading…
Cancel
Save