Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

Feature Request: Convert back and forth between normal and comment based syntax #7

Open
ssotangkur-kahuna opened this issue Sep 1, 2018 · 0 comments

Comments

@ssotangkur-kahuna
Copy link

Using the standard flowtype syntax in code, severely limits the other codemods that we can use because they cannot parse the flowtype syntax. The Comment Types make it easy for tools unfamiliar w/ the flow syntax to parse your code, however it is quite cumbersome to use compared to the standard syntax. By providing 2 codemods, one in each direction, we can get the best of both worlds. We can continue coding in the standard syntax. If and when we need to run an flowtype unaware codemod, we first convert them to comment-based syntax before passing them through our target codemod, then through the standard based syntax codemod to get us back.

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

No branches or pull requests

1 participant