Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not expand object with inline comments #1475

Open
vjeux opened this issue May 1, 2017 · 0 comments
Open

Do not expand object with inline comments #1475

vjeux opened this issue May 1, 2017 · 0 comments
Labels
area:comments Issues with how Prettier prints comments area:object literals lang:flow Issues affecting Flow-specific constructs (not general JS issues) type:bug Issues identifying ugly output, or a defect in the program

Comments

@vjeux
Copy link
Contributor

vjeux commented May 1, 2017

Prettier 1.10.2
Playground link

Input:

export type T = {|/* comment */|} | T2;

Output:

export type T =
  | {|
      /* comment */
    |}
  | T2;

We only need to do that for end of line comments, not inline ones.

@vjeux vjeux added type:bug Issues identifying ugly output, or a defect in the program area:comments Issues with how Prettier prints comments labels May 1, 2017
@azz azz added the lang:javascript Issues affecting JS label Oct 4, 2017
@j-f1 j-f1 added lang:flow Issues affecting Flow-specific constructs (not general JS issues) and removed lang:javascript Issues affecting JS labels Jan 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:comments Issues with how Prettier prints comments area:object literals lang:flow Issues affecting Flow-specific constructs (not general JS issues) type:bug Issues identifying ugly output, or a defect in the program
Projects
None yet
Development

No branches or pull requests

4 participants