Skip to content

flow parser: annotations in comments are printed without comments #2597

Description

@davidaurelio

When using the flow parser, all flow annotations inside of special comments (/*: ... */ and /*:: ... */) are printed as annotations without comments. Example.

It is not always feasible to switch to babylon as parser, so it would be nice if prettier would support outputting comments with flow’s parser, too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:flow comment typeslang:flowIssues affecting Flow-specific constructs (not general JS issues)type:intendedBug reports that actually turned out to be intended behavior

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions