You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Either the issue is fixed in Prettier completely, then there is no difference between Biome's and Prettier's behavior anymore, so the corresponding section should be removed from the docs.
Or the issue is only partially fixed in Prettier (at least for the documented code example), but still persists for other code examples. Then the documentation should be updated to include a code example that actually highlights the difference between Biome's and Prettier's behavior.
Code of Conduct
I agree to follow Biome's Code of Conduct
The text was updated successfully, but these errors were encountered:
I’d like to take on this issue and update the documentation to reflect the current differences with Prettier. I’ll review the current discrepancies and make the necessary adjustments. Please assign this issue to me.
Documentation URL
https://biomejs.dev/formatter/differences-with-prettier/
Description
Some documented differences with Prettier are no longer differences because Prettier's behavior changed in the meantime:
Prettier doesn’t unquote some object properties that are valid JavaScript identifiers
✔️ Still correct
Code example in Prettier Playground | Code example in Biome Playground
Prettier has an inconsistent behavior for assignment in computed keys.
✔️ Still correct
Code example in Prettier Playground | Code example in Biome Playground
Prettier adds a trailing comma to type parameters of arrow functions even when it is not required.
✔️ Still correct
Code example in Prettier Playground | Code example in Biome Playground
Prettier has an inconsistent behavior for parenthesized non-null-asserted optional chains
Code example in Prettier Playground | Code example in Biome Playground
Prettier formats invalid syntaxes – Duplicate modifiers on class properties
Code example in Prettier Playground | Code example in Biome Playground
Prettier formats invalid syntaxes – Assignment to an optional chain
✔️ Still correct
Code example in Prettier Playground | Code example in Biome Playground
Prettier formats invalid syntaxes – Incorrect modifier for the type parameters of an interface
✔️ Still correct
Code example in Prettier Playground | Code example in Biome Playground
Prettier formats invalid syntaxes – Top-level return
✔️ Still correct
Code example in Prettier Playground | Code example in Biome Playground
Prettier formats invalid syntaxes – Erroneous self-increment and self-decrement
Code example in Prettier Playground | Code example in Biome Playground
Prettier formats invalid syntaxes – Use of
abstract
modifier in non-abstract classes✔️ Still correct
Code example in Prettier Playground | Code example in Biome Playground
Prettier has inconsistencies between TypeScript and Babel parsing
babel
/babel-ts
/typescript
parsersCode example in Prettier Playground | Code example in Biome Playground
Expectations
For all differences with a ✔️:
For all differences with a⚠️ :
Code of Conduct
The text was updated successfully, but these errors were encountered: