-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Output changing between 2 options (regression?) #16897
Copy link
Copy link
Labels
area:idempotencyIssues with re-printing Prettier’s outputIssues with re-printing Prettier’s outputlang:jsxIssues affecting JSX (not general JS issues)Issues affecting JSX (not general JS issues)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
Metadata
Metadata
Assignees
Labels
area:idempotencyIssues with re-printing Prettier’s outputIssues with re-printing Prettier’s outputlang:jsxIssues affecting JSX (not general JS issues)Issues affecting JSX (not general JS issues)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
Prettier 3.4.1
Playground link
# Options (if any): --print-width 80 --tab-width 2Input:
Output:
Expected output:
Either one but consistently the same
Why?
The same code keeps alternating between 2 possible outputs on every execution. Both outputs are reported as invalid tho, leading to the format checking never passing. It looks like a regression on 3.4, given that the same code format was stable previously.