Skip to content

Unconventional space-before-function-paren #3

@snigo

Description

@snigo

Current guide for the space before function parentheses doesn't seem to align with any major style guides, such as Google Style Guide or Airbnb Style Guide.

I propose to clarify it in the description and to change eslint configuration of the corresponding rule to following:

"space-before-function-paren": { "anonymous": "always", "named": "never", "asyncArrow": "always" }

Additionally, instead of creating our own style guide we can just use one of those I described on top ☝️ that have good documentation. I personally prefer: Airbnb style guide, but I'm happy to work with any recommended guides as long as it doesn't force me to put whitespace before named function parentheses.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions