Skip to content

TypeScript as regression (2.0.3) #7957

@sosukesuzuki

Description

@sosukesuzuki

Prettier 2.0.3
Playground link

# Options (if any):
--single-quote

Input:

function foo() {
  return {
    foo,
    foo,    
  } as FOO
}

Output:

function foo() {
  return (
    {
      foo,
      foo,
    } as FOO
  );
}

Expected behavior:

same as input

function foo() {
  return {
    foo,
    foo,    
  } as FOO
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang:typescriptIssues affecting TypeScript-specific constructs (not general JS issues)locked-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