Add `multiline-return` STATEMENT_TYPE to padding-line-between-statements rule
See original GitHub issueWhat rule do you want to change?
padding-line-between-statements
Specifically, add a multiline-return
STATEMENT_TYPE to it.
Does this change cause the rule to produce more or fewer warnings? more
How will the change be implemented? (New option, new default behavior, etc.)? New option.
Please provide some example code that this change will affect:
/*eslint padding-line-between-statements: [
"error",
{ blankLine: "always", prev: "*", next: "multiline-return" }
]*/
const movie = 'title';
return {
that: 'thing',
you: 'do',
};
What does the rule currently do for this code?
No padding-line-between-statements
observer can be set for multiline-return
statements, specifically. All return statements line lengths are treated the same.
What will the rule do after it’s changed? A padding line would be added just before the return statement if used per my sample code above.
Are you willing to submit a pull request to implement this change? Apologies. Not at this time.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top GitHub Comments
Unfortunately, it looks like there wasn’t enough interest from the team or community to implement this change. While we wish we’d be able to accommodate everyone’s requests, we do need to prioritize. We’ve found that issues failing to reach accepted status after 21 days tend to never be accepted, and as such, we close those issues. This doesn’t mean the idea isn’t interesting or useful, just that it’s not something the team can commit to.
Thanks for contributing to ESLint and we appreciate your understanding.
Edited the issue to match my intent. Thank you for the feedback.