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

[backport] PR #6882 to 4.5 #6906

Merged
merged 1 commit into from
Apr 13, 2016
Merged

[backport] PR #6882 to 4.5 #6906

merged 1 commit into from
Apr 13, 2016

Conversation

elastic-jasper
Copy link
Contributor

Backport PR #6882

Commit 1:
[internal] Replace var with let in root of ui

This change was applied only to files in the root of the src/ui
directory.

This was an automatic replacement from var to let for any variable
declaration that doubles as the initial assignment. Ultimately we want
most of these to be converted to const, but that can happen in a future
commit.

For example:

var foo = 'bar'; becomes let foo = 'var';

This was accomplished by replacing:
find: var ([a-zA-Z_$][0-9a-zA-Z_$]*)(\s+)=
replace: let $1$2=

Commit 2:
[internal] Replace let with const in root of ui

This change was applied only to files in the root of the src/ui
directory.

All instances of let were replaced with const, and then any instance
that flagged the no-const-assign rule in the linter was put back.


Backported based on diff from PR #6895

---------

**Commit 1:**
[internal] Replace var with let in root of ui

This change was applied only to files in the root of the src/ui
directory.

This was an automatic replacement from var to let for any variable
declaration that doubles as the initial assignment. Ultimately we want
most of these to be converted to const, but that can happen in a future
commit.

For example:

`var foo = 'bar';` becomes `let foo = 'var';`

This was accomplished by replacing:
find: `var ([a-zA-Z_$][0-9a-zA-Z_$]*)(\s+)=`
replace: `let $1$2=`

* Original sha: a6ed127
* Authored by Court Ewing <court@epixa.com> on 2016-04-12T21:50:00Z

**Commit 2:**
[internal] Replace let with const in root of ui

This change was applied only to files in the root of the src/ui
directory.

All instances of `let` were replaced with `const`, and then any instance
that flagged the `no-const-assign` rule in the linter was put back.

* Original sha: 31a1e1a
* Authored by Court Ewing <court@epixa.com> on 2016-04-12T21:55:25Z
@epixa epixa merged commit fab8b08 into 4.5 Apr 13, 2016
@epixa epixa deleted the jasper/backport/6882/6895/4.5 branch April 13, 2016 20:21
epixa added a commit that referenced this pull request Jul 21, 2016
…95/4.5"

This reverts commit fab8b08, reversing
changes made to 86ec090.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants