Unstable comments in interfaces #5900
Labels
area:comments
Issues with how Prettier prints comments
area:idempotency
Issues with re-printing Prettier’s output
lang:flow
Issues affecting Flow-specific constructs (not general JS issues)
lang:typescript
Issues affecting TypeScript-specific constructs (not general JS issues)
type:bug
Issues identifying ugly output, or a defect in the program
Prettier 1.16.4
Playground link
Input:
Output:
Expected behavior:
For the last state to happen after a single format, not after 3. Note that this affects both Flow and TypeScript parsers - although middle state only happens with
typescript
. Using Babel parser works correctly after a single formatThe text was updated successfully, but these errors were encountered: