oxc/crates/oxc_prettier
overlookmotel ac05134a6d refactor(allocator): String type (#8568)
Wrap `bumpalo::collections::String` in a new type instead of exporting it directly. This opens the door to:

1. Replacing it with our own `String` type which wraps our `Vec` type, rather than having 2 different implementations of `Vec` (`String` is just a wrapper around `Vec`, but a *different* `Vec` implementation).
2. Adding additional methods to `String` (`String::from_utf8` added in this PR).
2025-01-18 01:23:54 +00:00
..
examples refactor(prettier)!: remove source_text argument from constructor (#6448) 2024-10-11 06:27:33 +00:00
src refactor(allocator): String type (#8568) 2025-01-18 01:23:54 +00: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