-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
[codemod] Add a new utility to rename imports #14919
[codemod] Add a new utility to rename imports #14919
Conversation
5c36976
to
3c1bc74
Compare
Deploy preview: https://deploy-preview-14919--material-ui-x.netlify.app/ |
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.
Nice addition, super helpful 👌 I left the tiniest nitpick, but LGTM otherwise 🙈
Co-authored-by: Nora <[email protected]> Signed-off-by: Flavien DELANGLE <[email protected]>
Co-authored-by: Nora <[email protected]> Signed-off-by: Flavien DELANGLE <[email protected]>
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.
LGTM. 👍
I've added a bug
label as it looks like it fixes some existing TreeView renaming codemods, doesn't it? 🤔
No, the test were not running and the test output were not correct (but never used so everything passed) |
Needed for #14913
We start to have a lot of codemods that just move imports around, a clean abstraction starts to be worth it
I did not update the grid codemod because their import management differs (there is no nested imports).
Several tree view codemod were not tested because I forgot to add
.test
in the test file, this is why the testing files might change slightly.