-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[eslint] Refactor some component to use const instead of let #3300
Conversation
switch (iconElementLeft.type.displayName) { | ||
case 'IconButton': | ||
iconElementLeft = React.cloneElement(iconElementLeft, { | ||
iconElementLeftNode = React.cloneElement(iconElementLeft, { |
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.
Should the auto fixer be making this change?
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.
Okay I see, I suppose you made some minor manual fixes along the way.
This is awesome 😍 However, this PR touches a lot of files as it is. Any single PR merge is gonna conflict 😁 |
It's already true ><. Alright, I'm gonna do it in two steps. |
@oliviertassinari That sounds great 👍 Thanks a lot 👍 👍 |
That's good to be reviewed again. I feel like I will have to enable the #ninja mode for the second PR 💥. There is a lot of PR merged every day. |
That looks good 👍 |
This is great thanks a lot 👍 👍 |
[eslint] Refactor some component to use const instead of let
I have used the auto-fix option of eslint with this homemade fix function:
I hade to refactor some component too. Be careful when reviewing 😁.