Comments (3)
I believe this is expected and it's not a bug.
When the list of parameters breaks on multiple lines, the formatter always adds a leading comma for the last parameter. In this case, the last is also the first.
However, the es5 trialing comma is definitely buggy, and we should fix it (with low priority I suppose)
from biome.
Interestingly, Prettier has the same issue.
from biome.
It seems they behave differently when setting trailing_comma
to es5. playground
from biome.
Related Issues (20)
- 📎 Import sorter revamping - custom order
- ☂️ Analyzer assists HOT 3
- 🐛 `npx @biomejs/biome migrate` command crashes HOT 5
- 📝 CSS formatter converts custom identifiers to lowercase HOT 3
- ☂️ Type-aware linter
- 📝 CSS extra whitespace added within `:has`
- 📎 Pin bench libs
- useExhaustiveDependencies ignore comment does not work if methods called on the dependency HOT 4
- Position not provided with `--stdin-file-path` HOT 2
- 💅 `noUndeclaredDependencies` checks root `package.json` in monorepo workspaces HOT 2
- Path with brackets in it causes `internalError/io` on Windows environment HOT 6
- 💅 `useExhaustiveDependencies` error's when (adding and not adding) to array HOT 3
- 📝 My vscode doesn't format itself when I save HOT 3
- 💅 useExhaustiveDependencies complains about not including React component in dependency array
- 🐛 Request textDocument/formatting failed HOT 1
- 📝 Biome cannot handle JSON formatting but Prettier can HOT 6
- Reformat issue with css formatter
- 🐛 biome ci . --colors=off outputting colors HOT 5
- 💅 `lint/suspicious/noFallthroughSwitchClause` warns about a missing `break` even if TypeScript considers it unreachable due `never`. HOT 1
- 📎 Implement noDynamicNamespaceImportAccess
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from biome.