Boshen

Results 565 comments of Boshen

@leaysgur is writing a series of articles in preparation of this task: * [Prettier のデバッグ方法について](https://leaysgur.github.io/posts/2024/09/03/111109/) * [Prettier のコードを読む Part.1](https://leaysgur.github.io/posts/2024/09/02/103846/) ~ [Part.10](https://leaysgur.github.io/posts/2024/10/08/132257/) --- I'm also working on comment attachments to unblock...

> Does this mean that you aim to implement Prettier equivalent which achieves with 60+ utils? 🫨 We need to figure out what exactly is prettier doing with those 60+...

For the long run, I envision a more configurable and less opinionated formatter. Under this assumption, we can relax the "100% compatibility" constraint. My intention is to reach a high...

> I think reducing the gaps between each phase will be important. > For that, we’ll need some way to directly compare the result of Prettier.parse() with our implementation. I...

@leaysgur I was just informed that [`biome_formatter`](https://github.com/biomejs/biome/tree/main/crates/biome_formatter) is a port of the Prettier IR and printer infrastructure. It may be possible to reduce repeated work by using `biome_formatter`. More investigation...

> but if we shift our goal to generating biome_formatter's IR > biome_formatter IR, aka format_element I think it's the same thing as `prettier`s IR. Also `Doc` in our code.

@leaysgur Thank you so much for the research. I think it's enough evidence to just implement our own thing (with some parts ported from Biome)?

@leaysgur will lead this project, and is free to make any changes to the `oxc_prettier` crate.

> Next, I'll check our current implementation. Fully or partially implemented? not yet covered? You can assume all are partially implemented 😅 Cross referencing the function in our code to...

@kth496 do you have a PR? I'll let someone else work on this if you don't have the time.