Skip to content

Unstable format when multiple comments on same line #9671

@fisker

Description

@fisker

Prettier 2.1.2
Playground link

--parser babel

Input:

a;
/*1*//*2*/
/*3*/
b;

a;
/*1*/
/*2*//*3*/
b;

Output:

a; /*2*/
/*1*/ /*3*/
b;

a; /*3*/
/*1*/
/*2*/ b;

Second Output:

a; /*2*/ /*3*/
/*1*/ b;

a; /*3*/
/*1*/
/*2*/ b;

Expected behavior:

Should be stable

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:commentsIssues with how Prettier prints commentslang:javascriptIssues affecting JSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions