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

Add ESLint plugin to warn on ES6+ #968

Merged
merged 1 commit into from
Jun 30, 2020

Conversation

Amorymeltzer
Copy link
Collaborator

@Amorymeltzer Amorymeltzer commented Jun 13, 2020

I stumbled on https://github.com/nkt/eslint-plugin-es5 about a year ago but it had too many false-positives when used with jQuery. Most of that (nkt/eslint-plugin-es5#12) appears to have been resolved with v1.5.0, specifically nkt/eslint-plugin-es5#36. This won't catch everything but I think it shouldn't have many false positives, as long as things like jQuery's .find are used on the same line as $, whether jQuery or as a variable name; we're inconsistent on that front, but it's not a bad idea to encourage it.

@Amorymeltzer Amorymeltzer added this to the July 2020 update milestone Jun 13, 2020
@Amorymeltzer Amorymeltzer marked this pull request as ready for review June 13, 2020 20:08
I stumbled on https://github.com/nkt/eslint-plugin-es5 about a year ago but it had too many false-positives when used with jQuery.  Most of that (nkt/eslint-plugin-es5#12) appears to have been resolved with v1.5.0, specifically nkt/eslint-plugin-es5#36.  This won't catch everything but I *think* it shouldn't have many false positives, as long as things like jQuery's `.find` are used on the same line as `$`, whether `jQuery` or as a variable name; we're inconsistent on that front, but it's not a bad idea to encourage it.
@Amorymeltzer Amorymeltzer merged commit 6cc2922 into wikimedia-gadgets:master Jun 30, 2020
@Amorymeltzer Amorymeltzer added the dependencies Pull requests that update a dependency file, likely through dependabot label Jul 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file, likely through dependabot docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant