Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 unnecessary trailing comma in type parameter list #832

Closed
1 task done
Conaclos opened this issue Nov 22, 2023 · 0 comments · Fixed by #872
Closed
1 task done

🐛 unnecessary trailing comma in type parameter list #832

Conaclos opened this issue Nov 22, 2023 · 0 comments · Fixed by #872
Assignees
Labels
A-Formatter Area: formatter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug

Comments

@Conaclos
Copy link
Member

Conaclos commented Nov 22, 2023

Environment information

Plaground

What happened?

Biome keeps the trailing comma of type parameter lists.
The following example:

class A<T,> {
}

is formatted to:

class A<T,> {}

Playground link

Expected result

Biome should remove an unnecessary trailing comma.
The example should thus be formatted to:

class A<T> {}

Code of Conduct

  • I agree to follow Biome's Code of Conduct
@Conaclos Conaclos added A-Formatter Area: formatter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug labels Nov 22, 2023
@Conaclos Conaclos changed the title 🐛 <TITLE> 🐛 unnecessary trailing comma in type parameter list Nov 23, 2023
@Conaclos Conaclos self-assigned this Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Formatter Area: formatter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant