Skip to content

Build: Enable ESLint one-var rule for var declarations in browser code #4615

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

Merged
merged 1 commit into from
Mar 2, 2020

Conversation

mgol
Copy link
Member

@mgol mgol commented Feb 24, 2020

Summary

Node.js code is written more & more commonly in ES6+ so it doesn't make sense
to enable it there. There are many violations in test code so it's disabled
there as well.

Checklist

… code

Node.js code is written more & more commonly in ES6+ so it doesn't make sense
to enable it there. There are many violations in test code so it's disabled
there as well.
@mgol mgol removed the Needs review label Mar 2, 2020
@mgol mgol changed the title Build: Enable the ESLint one-var rule for var declarations in browser code Build: Enable ESLint one-var rule for var declarations in browser code Mar 2, 2020
@mgol mgol merged commit 4a7fc85 into jquery:master Mar 2, 2020
@mgol mgol deleted the eslint-one-var branch March 2, 2020 21:25
@mgol mgol added this to the 3.5.0 milestone Mar 2, 2020
mgol added a commit that referenced this pull request Mar 2, 2020
Node.js code is written more & more commonly in ES6+ so it doesn't make sense
to enable it there. There are many violations in test code so it's disabled
there as well.

Closes gh-4615

(cherry picked from commit 4a7fc85)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants