This code infinitely self-replicates every time Prettier formats it #7797
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)
locked-due-to-inactivity
Please open a new issue and fill out the template instead of commenting.
type:bug
Issues identifying ugly output, or a defect in the program
Prettier 1.19.1
Playground link
Input:
Output:
Expected behavior:
The number of comments in the input and output should be the same. Instead, it's double. Every time you format it, it doubles.
The text was updated successfully, but these errors were encountered: