xsburg / vscode-javascript-booster

Sprinkle extra refactorings, code actions and commands over your JavaScript! 🍩 TypeScript and Flow are first class citizens as well!
https://marketplace.visualstudio.com/items?itemName=sburg.vscode-javascript-booster
160 stars 13 forks source link

Feature request: custom codemods #36

Open miklos-eiq opened 3 years ago

miklos-eiq commented 3 years ago

Would it be possible to specify local, project specific codemods, that this extension can pick up? Like a plugin system.

This would be very useful for incremental migration, where a big change cannot be done in a single PR, or a single codemod can't transform the whole codebase, because a developer needs to make the change one-by-one. I think many projects are stuck with an inferior api, because the migration for a better design would be too much work. This is a great extension, it would be quite impactful with a plugin ecosystem around it!

tomByrer commented 3 years ago

I was thinking of the same thing, since I want to make mods specific to ReactNative, but only a small percentage will be interested in what I do.

I'm thinking of monkey-patching in the meanwhile.... maybe add codemods to codemod this plugin? ;)