Skip to content

📝 Missing new line before closing bracket #11722

Description

@andrzej-early

Environment information

Irrelevant, can be reproduced in playground, see link below.

I noticed this after upgrading from Biome 2.5.11 to 2.5.13. Details contain issue details.

Details
type Foo = Record<
  // comment
  string,
  number
>

is formatted as

type Foo = Record<
	// comment
	string,
	number>;

while it should follow Prettier's formatting

type Foo = Record<
	// comment
	string,
	number
>;

Configuration

Playground link

https://biomejs.dev/playground/?tab=formatter&pane=Diagnostics#code=dAB5AHAAZQAgAEYAbwBvACAAPQAgAFIAZQBjAG8AcgBkADwACgAgACAALwAvACAAYwBvAG0AbQBlAG4AdAAKACAAIABzAHQAcgBpAG4AZwAsAAoAIAAgAG4AdQBtAGIAZQByAAoAPgA%3D

Code of Conduct

  • I agree to follow Biome's Code of Conduct

Metadata

Metadata

Assignees

Labels

A-FormatterArea: formatterL-JavaScriptLanguage: JavaScript and super languagesS-Bug-confirmedStatus: report has been confirmed as a valid bug

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions