It can check that spread isn't used when there's only a single property. So { ...expression }
and [ ...expression ]
should both just be expression
.
Sometimes spread is used just to combine things, so if you start off with { ...a, b: null, c: null }
and then later remove b
and c
you're left with { ...a }
when you really could replace it with a
.
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