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

Nice codemod: classnames-to-clsx #1

Open
coderaiser opened this issue May 4, 2024 · 0 comments
Open

Nice codemod: classnames-to-clsx #1

coderaiser opened this issue May 4, 2024 · 0 comments

Comments

@coderaiser
Copy link

Hi, just trapped on your codemod, looks really good!

I have a couple thoughts I want to share. I suggest you to use 🐊Putout Editor or 🦎Mobile Putout Editor. It will give you ability to generate tests for your code mode with RedPut (that's like IDE for 🐊Putout):

redput https://putout.cloudcmd.io/#/gist/de67650cdd3ac11c7cfa0234871f04bb/4eb1e63ee9fe91a3cefd18ddc04a1ff791bc128f

Also I suggest you to use store() for importName to prevent bugs related to same variable used for different files (it also cleans up when plugin done).

Also if you enable @putout/plugin-putout it will fix lots of possible bugs, and declare everything you use inside your codemodes.

Cheers,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant