New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
proposal:add new option to rule array-callback-return
and getter-return
#8539
proposal:add new option to rule array-callback-return
and getter-return
#8539
Comments
Yes please - I never write I would love this option (and would enable it in the airbnb config). |
Hi @aladdin-add, thanks for the issue. It looks like there's not enough information for us to know how to help you. Requesting a rule change? Please see Proposing a Rule Change for instructions. If it's something else, please just provide as much additional information as possible. Thanks! (edited by @platinumazure) |
Hi @aladdin-add, are you thinking we should enhance the rule with an option like for getter-return? Or should we just focus on cleaning up the documentation? |
I would like an option. |
the rule getter-return's option |
@ljharb You could use That said, I'm 👍 to there being an option. |
@eslint/eslint-team A PR just came for this, we should probably evaluate quickly or else close. |
@eslint/eslint-team Does anyone else want's to support this change? |
From the original post by @aladdin-add:
Just to clarify, should this actually read like this?
|
eh.yes! corrected @kaicataldo |
Marking as accepted since @aladdin-add is part of the team and will be the champion. |
What rule do you want to change?
array-callback-return
Does this change cause the rule to produce more or fewer warnings?
fewer.
How will the change be implemented? (New option, new default behavior, etc.)?
new option:
"allowImplicit": true -- allows implicitly returning undefined with a
return;
statement.Please provide some example code that this change will affect:
What does the rule currently do for this code?
Function expected a return value.(array-callback-return)
What will the rule do after it's changed?
no error.
The text was updated successfully, but these errors were encountered: