dgraham / eslint-plugin-jquery

Disallow jQuery functions with native equivalents.
MIT License
209 stars 22 forks source link

Create rule for `$.extend` #24

Closed brendo closed 5 years ago

brendo commented 6 years ago

It can be replaced (in most cases) with Object.assign or the spread operator

RinkAttendant6 commented 6 years ago

It would be more helpful if this rule only flagged usages where the first parameter is not a boolean. Object.assign and object spread only do shallow clone.