Skip to content

Redundant parens aren't removed in function because of JSDoc #7686

@thorn0

Description

@thorn0

Prettier 1.19.1
Playground link

--parser babel

Input:

/* @type { } */
z(x => {
  (foo)((bar)(2+(3)))
  return (1);
})

Output:

/* @type { } */
z(x => {
  (foo)((bar)(2 + (3)));
  return (1);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang: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