oxc/crates/oxc_linter
Boshen 5c38a0fd69 feat(codegen)!: new code gen API (#3740)
This PR introduces two type alias to avoid the confusing const generic `pub struct Codegen<'a, const MINIFY: bool>`

* CodeGenerator - Code generator without whitespace removal.
* WhitespaceRemover - Code generator with whitespace removal.

Usage is changed to a builder pattern:

```rust
CodeGenerator::new()
  .enable_comment(...)
  .enable_sourcemap(...)
  .build(&program);
```
2024-06-18 15:50:12 +00:00
..
examples chore: make println and eprintln opt-in (#3712) 2024-06-17 10:40:34 +00:00
fixtures fix(linter/default): ignore unsupported files (e.g. .vue) 2024-05-12 13:33:29 +08:00
src feat(codegen)!: new code gen API (#3740) 2024-06-18 15:50:12 +00:00
tests feat(tasks/website): code generate the linter rules 2024-05-23 15:21:37 +08:00
Cargo.toml Release oxlint v0.4.4 (#3669) 2024-06-14 15:05:26 +08:00
CHANGELOG.md Release oxlint v0.4.4 (#3669) 2024-06-14 15:05:26 +08:00