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

no more vars (convert var to let/const) #11699

Closed
wants to merge 1 commit into from

Conversation

raphamorim
Copy link
Contributor

@raphamorim raphamorim commented Nov 29, 2017

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.

@raphamorim raphamorim changed the title no more vars (convert var to const) no more vars (convert var to let/const) Nov 29, 2017
var PropTypes = require('prop-types');
var React = require('react');
var ReactART = require('react-art');
const assign = require('object-assign');
Copy link
Collaborator

Choose a reason for hiding this comment

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

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I'll change it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed in 4446de5

Copy link
Collaborator

@gaearon gaearon left a comment

Choose a reason for hiding this comment

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

Please exclude anything in /npm.

@raphamorim
Copy link
Contributor Author

Ok, leave it to me @gaearon :octocat:

@raphamorim
Copy link
Contributor Author

raphamorim commented Nov 29, 2017

@gaearon I was wondering if I could send the remaining files in a separated PR.
The reason is the remaining files I'm editing after the command (e.g: server-side tests).
BTW: the conflicts of that PR is already quite large (due to the number of files changed).

@gaearon
Copy link
Collaborator

gaearon commented Nov 29, 2017

This is really hard to review too.
Can you send a separate PR for each package please?

@gaearon gaearon closed this Nov 29, 2017
@raphamorim
Copy link
Contributor Author

raphamorim commented Nov 29, 2017

Sure :)

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.

3 participants