-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Comments on lines before leading semis are indented in 1.15.1 #5409
Copy link
Copy link
Labels
area:commentsIssues with how Prettier prints commentsIssues with how Prettier prints commentslang:javascriptIssues affecting JSIssues affecting JSlocked-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.status:has prIssues with an accompanying pull request. These issues will probably be fixed soon!Issues with an accompanying pull request. These issues will probably be fixed soon!
Milestone
Metadata
Metadata
Assignees
Labels
area:commentsIssues with how Prettier prints commentsIssues with how Prettier prints commentslang:javascriptIssues affecting JSIssues affecting JSlocked-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.status:has prIssues with an accompanying pull request. These issues will probably be fixed soon!Issues with an accompanying pull request. These issues will probably be fixed soon!
Prettier 1.15.1
Playground link
Input:
Output:
Expected behavior:
This worked as expected in 1.14.3 and is a new issue in 1.15.1:
https://github.com/badges/shields/pull/2289/files#diff-676bb6a761a788e31078b1ca347c3e63
Apologies if this has already been reported! There are some related issues around semicolons and comments including #5022 but they are older and seem to be different from this one.