mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
44231fb5f7
Fixes comment-placement bugs, idempotency and also inconsistency around unions/intersections, type aliases, conditional types, and assignment-likes. - Fix invariant violations where comments crossed `=`, the value, or `;` - removed the relocation logic emulating old Prettier 3.8 behavior - Normalize a union's leading comments to one canonical form behind the synthesized leading `|`, independent of the source shape - Comments around a formatter-added `(` keep their source side of the `(` - Hug conditional-type branch comments behind `?`/`:` with the content one level under the operator, matching conditional expressions - Extend `= // c` position preservation from type aliases to all of JS