array-callback-return should report .flatMap() #12235
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
breaking
This change is backwards-incompatible
rule
Relates to ESLint's core rules
Projects
Array.prototype.flatMap was added in ECMAScript 2019
What rule do you want to change?
array-callback-return
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 default behavior
Please provide some example code that this change will affect:
What does the rule currently do for this code?
No errors
What will the rule do after it's changed?
Error:
Expected to return a value in arrow function.
Are you willing to submit a pull request to implement this change?
Yes.
Can this be a semver-minor default behavior change? It looks too 'small' for an option.
The text was updated successfully, but these errors were encountered: