-
Notifications
You must be signed in to change notification settings - Fork 47.4k
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
Conversation
37ef5ca
to
513e921
Compare
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'); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed in 4446de5
There was a problem hiding this 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
.
Ok, leave it to me @gaearon |
513e921
to
4446de5
Compare
4446de5
to
e5d4762
Compare
@gaearon I was wondering if I could send the remaining files in a separated PR. |
This is really hard to review too. |
Sure :) |
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.