Want to contribute? Lets you know you are interested! We will assign you to the issue to prevent several people to work on the same issue. Don't worry, we can unassign you later if you are no longer interested in the issue! Read our contributing guide and analyzer contributing guide.
I think we don't need any rule options.
We should check that forEach
don't return any value (implicit return
should be allowed).
Note: Similarly to useGetterReturn, we could ensure that the callback return in every possible branches. This will require Control Flow Analysis. See the useGetterReturn
implementation.
Note: Similarly to useFlatMap and noAccumulatingSpread, the rule applies to all methods with the names reduce
, map
, etc. This doesn't apply only to arrays. This is why I proposed a more general name useIterableCallbackReturn
. We are open to suggestion if a better name can be found.
Suggested names: useIterableCallbackReturn
, useArrayCallbackReturn
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too