Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Updated all vars in test files to consts and lets. #171

Merged
merged 4 commits into from
Jun 19, 2018
Merged

Updated all vars in test files to consts and lets. #171

merged 4 commits into from
Jun 19, 2018

Conversation

barrymichaeldoyle
Copy link

It's better to define variables as consts and lets over vars.

Copy link
Contributor

@ljharb ljharb left a comment

Choose a reason for hiding this comment

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

This makes things not work in pre-ES6 browsers, or older node.

@barrymichaeldoyle
Copy link
Author

Doesn't the babel preset sort that out?

@ljharb
Copy link
Contributor

ljharb commented Mar 19, 2018

In the test files, i suppose, but none of the production files in this repo get run through babel.

@barrymichaeldoyle
Copy link
Author

Ah right, didn't realize that. I'll update the PR to only update the tests.

@barrymichaeldoyle
Copy link
Author

There we go, I reset back to the commits that only affect the test files 👍

@gaearon gaearon merged commit 2ac742c into facebook:master Jun 19, 2018
@gaearon
Copy link
Contributor

gaearon commented Jun 19, 2018

Seems fine, thanks. A PR adding a Babel step would also be great!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants