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
-
-
Do these transforms support TypeScript? If so, it would be wonderful if they could be open sourced…
-
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
End of conversation
New conversation -
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.