refactor(formatter_core): purify core and define rules#22952
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
08d0d74 to
60dc0ad
Compare
Oxfmt Ecosystem CI
|
60dc0ad to
b323a76
Compare
Merging this PR will not alter performance
Comparing Footnotes
|
22f2b16 to
ca58ed7
Compare
b323a76 to
e483a3a
Compare
e483a3a to
73bb51e
Compare
ca58ed7 to
c786f0d
Compare
73bb51e to
12a7397
Compare
Merge activity
|
The Printer never consumes these; they belong with each language formatter. - Evict `Quote` (each formatter owns `QuoteStyle`) - `normalize_string` takes a quote byte - Evict `Expand` / `BracketSpacing` / `TrailingCommas` into oxc_formatter and oxc_formatter_json - JSON's `TrailingCommas` is now two-variant (`Always`/`Never`) - collapse Prettier's `all`/`es5` at each translation layer - Rename `util/` -> `spec/` (pure shared helpers) - Split `SourceText`: mechanical access stays in core, JS/TS lexis moves to `SourceTextExt` - Drop the `oxc_syntax` dependency from core All behaviros, Prettier conformance are unchanged.
12a7397 to
5778a2d
Compare

The Printer never consumes these; they belong with each language formatter.
Quote(each formatter ownsQuoteStyle)normalize_stringtakes a quote byteExpand/BracketSpacing/TrailingCommasinto oxc_formatter and oxc_formatter_jsonTrailingCommasis now two-variant (Always/Never)all/es5at each translation layerutil/->spec/(pure shared helpers)SourceText: mechanical access stays in core, JS/TS lexis moves toSourceTextExtoxc_syntaxdependency from coreAll behaviros, Prettier conformance are unchanged.