sindresorhus / eslint-plugin-unicorn

More than 100 powerful ESLint rules
MIT License
4.29k stars 368 forks source link

[no-useless-spread] check Object.assign(obj1, { ...obj2}); #2090

Open tjx666 opened 1 year ago

tjx666 commented 1 year ago

I find my team member (front end newbie) will write code like this:

Object.assign(obj1, { ...obj2 });
fisker commented 1 year ago

A good one for this request https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2017