-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Labels
acceptedThere is consensus among the team that this change meets the criteria for inclusionThere 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 discussionThis issue has been archived; please open a new issue for any further discussionfeatureThis change adds a new feature to ESLintThis change adds a new feature to ESLintruleRelates to ESLint's core rulesRelates to ESLint's core rules
Milestone
Description
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 inclusionThere 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 discussionThis issue has been archived; please open a new issue for any further discussionfeatureThis change adds a new feature to ESLintThis change adds a new feature to ESLintruleRelates to ESLint's core rulesRelates to ESLint's core rules