-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Open
Labels
area:commentsIssues with how Prettier prints commentsIssues with how Prettier prints commentsarea:idempotencyIssues with re-printing Prettier’s outputIssues with re-printing Prettier’s outputlang:javascriptIssues affecting JSIssues affecting JS
Description
Prettier 1.19.1
Playground link
--parser babelInput:
class x {
focus() // do nothing
{
// do nothing
}
}Output:
class x {
focus() { // do nothing
// do nothing
}
}Second Output:
class x {
focus() {
// do nothing
// do nothing
}
}Expected behavior:
Second output should not change
Issue found in #7565
Metadata
Metadata
Assignees
Labels
area:commentsIssues with how Prettier prints commentsIssues with how Prettier prints commentsarea:idempotencyIssues with re-printing Prettier’s outputIssues with re-printing Prettier’s outputlang:javascriptIssues affecting JSIssues affecting JS