oxc/crates/oxc_prettier
Boshen 42dcadfccf fix(parser): hashbang comment should not keep the end newline char (#5844)
Previously it included a newline in the value

```
  "hashbang": {
    "type": "Hashbang",
    "start": 0,
    "end": 16,
    "value": "/usr/bin/node\n"
  },
```

This change will also make the lexer emit a `\n` token, which will make comment position detection correct.
2024-09-18 05:41:44 +00:00
..
examples refactor(parser)!: remove builder pattern from Parser struct (#5000) 2024-08-20 07:40:25 +00:00
src fix(parser): hashbang comment should not keep the end newline char (#5844) 2024-09-18 05:41:44 +00:00
Cargo.toml perf(formatter): use cow and put cow_ascii on clippy (#5646) 2024-09-10 09:38:17 +08:00
README.md Update README 2024-01-19 18:39:07 +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