Skip to content

Rule Proposal: no-spaced-func with never #6080

@mysticatea

Description

@mysticatea

From requireSpacesInCallExpression and disallowSpacesInCallExpression.

In JSCS, we can specify that spaces are required before the open parenthesis of call expressions.
In ESLint, no-spaced-func has a responsibility for spacing of call expressions.

This proposal is to add "always"/"never" option to no-spaced-func.
Maybe we should rename this rule to call-spacing or something like.

{
    "call-spacing": ["error", "always" or "never"]
}
  • "always" - Requires spacing before the open parenthesis of call expressions.
  • "never" (default) - Disallows spacing before the open parenthesis of call expressions. (the current behavior)

Metadata

Metadata

Assignees

Labels

acceptedThere is consensus among the team that this change meets the criteria for inclusionarchived due to ageThis issue has been archived; please open a new issue for any further discussionfeatureThis change adds a new feature to ESLintruleRelates to ESLint's core rules

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions