Open arshcodemod opened 2 weeks ago
/cc @sxzz can you summon Vue 2 and 3 wizards here
More explanation about Codmod Studio from Alex:
use this link, containing the feature flag for our most advanced AI. use the "tour" button in the Studio to learn how the codemod studio works (and provide feedback if something is not clear) use this API doc for jscodeshift provide feedback if something is missing. keep in mind, that for a real life jscodeshift codemod, most of the code is about knowing the grammar of the parser....
Hello There! Thank you for starting this tracking issue. I believe there are some helpful tools that could serve as a reference.
There are also other repositories, one that I used some years ago but couldn't find unfortunately.
I'd also suggest that setting the output target to script setup
instead of normal script
style.
One question that I have, is there a preference between jscodeshift
and ts-moph
as the engine?
I've used ts-morph
before, but have never worked with jscodeshift
.
Migration details
[Link to upgrade guide]
To contributors working on this task:
[ ] Framework Expert: For each codemod use case in this migration, provide the Codemod Studio link (example) with detailed specifications. Include before/after pairs, transformation logic in comments, and edge cases. Even if the transformation is tricky, provide instructions on detecting the patterns. This helps estimate the effort needed and guides developers to the areas requiring manual changes.
[ ] Codemod Creator: Build and publish quality codemods that handle most edge cases. False negatives are acceptable, but there should be no false positives. Even if the transformation is tricky, build a codemod that can detect and add comments to guide developers to the areas needing manual changes.
Questions? -> Community