Replies: 9 comments 28 replies
-
Architecture
|
Beta Was this translation helpful? Give feedback.
-
Line Wrapping and printWidthSee https://antfu.me/posts/why-not-prettier ![]() The most frequently criticized feature is Prettier's automatic wrapping and unwrapping of lines based on its printWidth setting (typically 80 or 100 characters). While intended to prevent horizontal scrolling, this behavior often creates significant "noise" in Git diffs. A minor change to a long string or function signature can cause an entire block of code to be reformatted, obscuring the actual logic change and making code reviews more difficult and time-consuming. In certain contexts, such as functional programming pipelines or long, chained method calls, the resulting formatting can be objectively harder to read than the original, manually formatted code. The inability to disable this behavior is a major and long-standing complaint. |
Beta Was this translation helpful? Give feedback.
-
Builtin sorting and aesthetically features
|
Beta Was this translation helpful? Give feedback.
-
DefaultsDefaults will be aligned to prettier for compatibility reasons. |
Beta Was this translation helpful? Give feedback.
-
Why not dprintDprint has two parts:
We want to offer a better formatter. We can offer a dprint wasm plugin for existing users of dprint. |
Beta Was this translation helpful? Give feedback.
-
Built-in tailwindcss support? |
Beta Was this translation helpful? Give feedback.
-
Config support
|
Beta Was this translation helpful? Give feedback.
-
Proper html formatting would be a huge deal for many users. Currently prettier enforces jsx style for html. <!-- prettier -->
<img src="" />
<!-- proper html -->
<img src=""> |
Beta Was this translation helpful? Give feedback.
-
I would like to completely abandon eslint in favor of oxlint, but I can't do that without using third-party eslint plugins. This is because no formatter (at the moment) can provide the flexibility and accuracy that https://eslint.style offers. If oxfmt becomes its counterpart, then it has a future. Otherwise, it will just be another unnecessary (or even harmful) formatter like prettier and biome. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This discussion documents our decision process for our up coming formatter called oxfmt.
Prioritizations are performance and better DX.
Using structured comments below for better discussion.
Beta Was this translation helpful? Give feedback.
All reactions