Closed nLight closed 7 years ago
Looks good. I think I would have gone for an option on in-params but I'm OK with this. Will merge and do package upgrades later today.
Hey, thanks for the rapid feedback! I'm happy to discuss extending the in-params
rule. Gotta find good option name maybe?
I dropped linting changes
published as 2.1.0
\o/ Thank you very much!
That rule allows one to forbid usage of destructuring in methods params.
We've had the following situation and decided to forbid usage of destructuring in methods params completely, while still allowing it for higher order functions
The following example demonstrates rather extreme case, but it is very easy to get there by adding one field at a time.
Why is it bad?
Solution
PS. eslint was yelling at me so I fixed indentation as well.