dgraham / eslint-plugin-jquery

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

inconsistent jquery/no-read #35

Closed Berkmann18 closed 5 years ago

Berkmann18 commented 5 years ago

The rule catches $(function () { /* ... */ }) but when I change the function into an arrow function like $(() => { /* ... */ }) it doesn't behave the same way even tho it's technically the same code. Is it a bug or was that intended?

edg2s commented 5 years ago

We fixed this in wikimedia/eslint-plugin-no-jquery/pull/83 if you'd like to port that fix over.