Tooling on my wish list: - Codemods for converting React components between functions and classes - Codemods for converting arrow function bodies between single expressions and blocks - IDE support for running said codemods on selected code
-
Show this thread
-
Replying to @OliverJAsh
I think
@WebStormIDE has 1 and 2, at least in some way.1 reply 0 retweets 1 like -
Replying to @iamsapegin @OliverJAsh
Right. The first one coming next week in WebStorm 2018.2 RC. The second one is already available. We don't have any specific support for the Facebook's codemod, but it should be possible to configure it as an External IDE tool.
1 reply 0 retweets 2 likes -
Replying to @WebStormIDE @iamsapegin
Do these transforms support TypeScript? If so, it would be wonderful if they could be open sourced…
1 reply 0 retweets 1 like
Replying to @OliverJAsh @iamsapegin
Yes, both JavaScript and TypeScript. Sorry, these transformations are implemented for the code structure model used in WebStorm and other JetBrains IDEs and not AST and they can't run in the command-line
4:55 AM - 4 Jul 2018
0 replies
0 retweets
3 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.