Commit Graph

3 Commits

Author SHA1 Message Date
leaysgur e55215f931 chore(formatter,formatter_json): use print over println in example (#22910)
Since formatters already print their own "trailingNewLine", `print!` is fine.
2026-06-03 03:16:08 +00:00
camc314 2c8689603d fix(formatter_json): avoid example binary name collision (#22904)
Cargo currently warns when checking examples for both `oxc_formatter` and `oxc_formatter_json` because each crate has an implicit `formatter` example target. That makes both packages try to write `target/debug/examples/formatter`.

This renames the JSON formatter example to `json_formatter` and updates the usage comments in the example so the command stays accurate.

Checked with:

```sh
cargo check --examples -p oxc_formatter -p oxc_formatter_json
```
2026-06-02 00:34:06 +00:00
leaysgur 8c9f62254d test(formatter_json): add examples/formatter (#22875)
The same as `oxc_formatter`'s.

```sh
cargo run -p oxc_formatter_json --example formatter [file]
```
2026-06-01 09:15:30 +00:00