You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The text was updated successfully, but these errors were encountered: