Skip to content
This repository was 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

@ssotangkur-kahuna

Description

@ssotangkur-kahuna

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions