-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[eslint] re-enable no-var and prefer-const #9455
[eslint] re-enable no-var and prefer-const #9455
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Court beat me to it.
Let us take a moment of silence for var.
/giphy for the love of |
Is this supposed to get backported? I seem to get a lot of backport conflicts because of let/const differences. |
Hmm, it's labeled 5.2 but I don't see the backport here... |
This re-enables the no-var and prefer-const rules in eslint and fixes all violations. All but the last commit contains fixes automatically generated by the
npm run lintroller
command. The final commit fixes the violations that were not auto-fixable for some reason. None of the changes were very significant and should be easy to review for correctness.