Skip to content

Question RE space-before-function-paren #216

@nathanmarks

Description

@nathanmarks

In the styleguide it mentions that we use space-before-function-paren to prevent anonymous functions having a space before the parens for consistency.

However, since a named function is like:

function doSomething() {}

Wouldn't it be more consistent to leave a space between function and () for anonymous functions since there is a space between function and doSomething, with function having nothing to do with the naming part?

const doSomething = function () {};

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