Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

🐛 Parity with prettier for casting objects as a return of an arrow function #4268

Open
1 task done
Naddiseo opened this issue Mar 6, 2023 · 0 comments
Open
1 task done
Labels
A-Formatter Area: formatter L-TypeScript Area: TypeScript support in Rome S-Bug: confirmed Status: report has been confirmed as a valid bug

Comments

@Naddiseo
Copy link

Naddiseo commented Mar 6, 2023

Environment information

CLI:
  Version:              11.0.0
  Color support:        true

Platform:
  CPU Architecture:     x86_64
  OS:                   linux

Environment:
  ROME_LOG_DIR:         unset
  NO_COLOR:             unset
  TERM:                 "xterm-256color"

Rome Configuration:
  Status:               loaded
  Formatter disabled:   false
  Linter disabled:      true

Workspace:
  Open Documents:       0

What happened?

Playground Link

The closing parentheses are in different locations to prettier

() =>
  ({
    longName1: 1,
  }) as Record<string, number>;

Expected result

() =>
  ({
    longName1: 1,
  } as Record<string, number>);

Code of Conduct

  • I agree to follow Rome's Code of Conduct
@Naddiseo Naddiseo added the S-To triage Status: user report of a possible bug that needs to be triaged label Mar 6, 2023
@nissy-dev nissy-dev added A-Formatter Area: formatter S-Bug: confirmed Status: report has been confirmed as a valid bug L-TypeScript Area: TypeScript support in Rome and removed S-To triage Status: user report of a possible bug that needs to be triaged labels Mar 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Formatter Area: formatter L-TypeScript Area: TypeScript support in Rome S-Bug: confirmed Status: report has been confirmed as a valid bug
Projects
None yet
Development

No branches or pull requests

2 participants