Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group rules more sensibly #163

Open
edg2s opened this issue Oct 16, 2019 · 0 comments
Open

Group rules more sensibly #163

edg2s opened this issue Oct 16, 2019 · 0 comments

Comments

@edg2s
Copy link
Member

edg2s commented Oct 16, 2019

Some rules disallow related methods:

  • no-wrap: wrap, unwrap, wrapAll, wrapInner
  • no-ajax: ajax, get, getJSON, getScript, post

Some are broken up to fairly useless separate rules

  • no-bind, no-unbind
  • no-show, no-hide, no-toggle

Individual rules should be deprecated in favour of functional groupings.

Per ESLint policy, deprecated rules need never been removed. If there is demand in future to break up these groups, that can be done when a use case is presented c.f. adding granular options to no-animate and no-extend.

Another use case for separate rules is when particular methods are deprecated in jQuery, e.g. no-unique must remain separate to no-unique-sort (were it to be created).

jdforrester pushed a commit that referenced this issue Oct 16, 2019
#166)

* Introduce `no-visibility`, deprecate `no-show`, `no-hide`, `no-toggle`

See #163

* Update test-all/methods.js
edg2s added a commit that referenced this issue Dec 17, 2019
Merges:
* no-die -> no-live
* no-unbind -> no-bind
* no-undelegate -> no-delegate

Part of #163
jdforrester pushed a commit that referenced this issue Dec 17, 2019
Merges:
* no-die -> no-live
* no-unbind -> no-bind
* no-undelegate -> no-delegate

Part of #163
edg2s added a commit that referenced this issue Mar 16, 2020
jdforrester added a commit that referenced this issue Mar 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant