Skip to content

Expressions with JSDoc type annotation have double parens #6283

@OliverJAsh

Description

@OliverJAsh

Prettier 1.18.2
Playground link

# Options (if any):

Input:

/** @type {any} */
const x = (
  <div>
    <div />
  </div>
);

Output:

/** @type {any} */
const x = ((
  <div>
    <div />
  </div>
));

Expected behavior:
No change, same as input.

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