oxc/crates/oxc_prettier
Yuji Sugiura 521df425de
refactor(prettier): Unified method of Doc generation (#7600)
Before:

- `Doc::Xxx()` + `XXX.with_xxx()`
- `macro!()`
- `p.xxx()`

After:

- `p.xxx()` with `p_vec!` macro
2024-12-03 17:27:55 +08:00
..
examples refactor(prettier)!: remove source_text argument from constructor (#6448) 2024-10-11 06:27:33 +00:00
src refactor(prettier): Unified method of Doc generation (#7600) 2024-12-03 17:27:55 +08:00
Cargo.toml perf(linter, prettier, diagnostics): use FxHashMap instead of std::collections::HashMap (#5993) 2024-09-23 16:29:05 +00:00
README.md chore(doc): replace main/master to tag/commit to make the url always accessible (#7298) 2024-11-16 21:00:30 +08:00

Getting started

Create a test.js and run the example just example prettier from crates/oxc_prettier/examples/prettier.rs, follow the code structure and read the references documented at the top of the files.

Tasks