dgraham / eslint-plugin-jquery

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

no-deferred / NewExpression #14

Closed pkonieczniak closed 6 years ago

pkonieczniak commented 6 years ago

Hi, thanks for plugin, good job.

Before I found your lib, I wrote a rule to avoid using $.Deferred. https://github.com/pkonieczniak/eslint-plugin-no-jquery-deferred/blob/master/lib/rules/no-jquery-deferred.js

In no-deferred rule you forget, that Deferred constructor can be call with newkeyword. Could you add this case to plugin or should I make PR?