wikimedia / eslint-plugin-no-jquery

Control allowance of certain jQuery functions, and suggest or autofix alternatives.
MIT License
32 stars 8 forks source link

Create a rule or config that disables all usage of jQuery #250

Closed edg2s closed 4 years ago

edg2s commented 4 years ago

Some users want to to just warn about all uses of jQuery so they can migrate off it (e.g. https://github.com/mozilla/bedrock/issues/7431)

While a separate rule for each method would be useful (#112), in the meantime we could either create:

  1. A rule that matches and use of a jQuery function or collection
  2. A rule that matches all remaining methods (#112), included in a config with all our other rules

The benefit of approach 2 would be better error messages for the rules we have created.