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

Use const/let instead of var in all core plugins #6012

Merged
merged 10 commits into from
Feb 2, 2016
Merged

Conversation

epixa
Copy link
Contributor

@epixa epixa commented Jan 26, 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.

@epixa
Copy link
Contributor Author

epixa commented Jan 26, 2016

Once all of the core code in Kibana is moved over, we should add a rule to flag any use of var, but we should wait until then.

@jbudz
Copy link
Member

jbudz commented Feb 2, 2016

Compiles, runs, and didn't see any missing vars. LGTM pending jenkins, letting you decide timing on merging.

@jbudz jbudz assigned epixa and unassigned jbudz Feb 2, 2016
epixa added a commit that referenced this pull request Feb 2, 2016
Use const/let instead of var in all core plugins
@epixa epixa merged commit 0475b85 into elastic:master Feb 2, 2016
@epixa epixa deleted the es6ify branch July 21, 2016 21:27
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