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

[eslint] re-enable no-var and prefer-const #9455

Merged

Conversation

spalger
Copy link
Contributor

@spalger spalger commented Dec 13, 2016

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.

@spalger spalger added Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc review v5.2.0 v6.0.0 labels Dec 13, 2016
Copy link
Contributor

@kobelb kobelb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@epixa
Copy link
Contributor

epixa commented Dec 13, 2016

LGTM

Copy link
Contributor

@tylersmalley tylersmalley left a 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.

@spalger
Copy link
Contributor Author

spalger commented Dec 13, 2016

/giphy for the love of var!

@spalger spalger merged commit 2f6654b into elastic:master Dec 13, 2016
@spalger spalger deleted the eslint/reenable+fix/no-var,prefer-const branch December 13, 2016 23:27
@stacey-gammon
Copy link
Contributor

Is this supposed to get backported? I seem to get a lot of backport conflicts because of let/const differences.

@spalger
Copy link
Contributor Author

spalger commented Jan 21, 2017

Hmm, it's labeled 5.2 but I don't see the backport here...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v5.2.0 v6.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants