Skip to content

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

Closed
raphamorim wants to merge 1 commit intofacebook:masterfrom
raphamorim:feature/no-more-vars
Closed

no more vars (convert var to let/const)#11699
raphamorim wants to merge 1 commit intofacebook:masterfrom
raphamorim:feature/no-more-vars

Conversation

@raphamorim
Copy link
Copy Markdown
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
Comment thread packages/react-art/npm/Circle.js Outdated
var PropTypes = require('prop-types');
var React = require('react');
var ReactART = require('react-art');
const assign = require('object-assign');
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

Ok, leave it to me @gaearon :octocat:

@raphamorim
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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