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

[4.x] Use const/let instead of var in all core plugins #6063

Merged
merged 10 commits into from
Feb 2, 2016

Conversation

epixa
Copy link
Contributor

@epixa epixa commented Feb 2, 2016

This also adds a rule to our linter to flag attempts to override const variables.

I made no attempt to clean up any of the logic or code. There are definitely a few
places where with a minor refactor we'd be able to use const instead of let, as
well as a few unused variables in the mix, but this change is already significant
enough without having to verify any changes like that.

Similar to #6012, only for the 4.x branch.

@jbudz
Copy link
Member

jbudz commented Feb 2, 2016

LGTM

epixa added a commit that referenced this pull request Feb 2, 2016
[4.x] Use const/let instead of var in all core plugins
@epixa epixa merged commit 6b61e49 into elastic:4.x Feb 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants