RE: generator-star-spacing: work better together with space-before-function-paren #6195 #8918
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
enhancement
This change enhances an existing feature of ESLint
rule
Relates to ESLint's core rules
I'd like to drag this one back up, because I feel it should still be addressed
(original issue #6195)
To summarize, the issue is that with the rules as below:
an anonymous generator function can never satisfy both rules
This is still an issue that needs a resolution.
A decent half-fix would be to allow an unset "before" or "after" in generator-star-spacing to behave as if the rule is off for that half, only enforcing the rule for the values which are explicitly set.
A better more complete fix would be, as discussed in the previous issue, add configurability based on the function type (named, anonymous, method), in addition.
The text was updated successfully, but these errors were encountered: