no more vars (convert var to let/const)#11699
Closed
raphamorim wants to merge 1 commit intofacebook:masterfrom
Closed
no more vars (convert var to let/const)#11699raphamorim wants to merge 1 commit intofacebook:masterfrom
raphamorim wants to merge 1 commit intofacebook:masterfrom
Conversation
37ef5ca to
513e921
Compare
gaearon
reviewed
Nov 29, 2017
| var PropTypes = require('prop-types'); | ||
| var React = require('react'); | ||
| var ReactART = require('react-art'); | ||
| const assign = require('object-assign'); |
Collaborator
There was a problem hiding this comment.
We can't do this. This file ships on npm without transpilation. So it needs to be ES5. Same for all other files in /npm/ folder.
Contributor
Author
There was a problem hiding this comment.
Ok, I'll change it.
gaearon
requested changes
Nov 29, 2017
Collaborator
gaearon
left a comment
There was a problem hiding this comment.
Please exclude anything in /npm.
Contributor
Author
|
Ok, leave it to me @gaearon |
513e921 to
4446de5
Compare
4446de5 to
e5d4762
Compare
Contributor
Author
|
@gaearon I was wondering if I could send the remaining files in a separated PR. |
Collaborator
|
This is really hard to review too. |
Contributor
Author
|
Sure :) |
This was referenced Nov 30, 2017
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After discuss with @gaearon in #11637. I guess it's best to continue with #6097.
I took the liberty of following the footsteps of #6097 and sending this PR.
But still missing run it on files with Flow.