mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
dffa4b329f
- Implement `oxc_formatter_css` crate - Use `raffia` crate - https://github.com/g-plane/raffia - Supports CSS, LESS and SCSS - Prettier uses `postcss` for parser - https://github.com/prettier/prettier/blob/1c6ba5539141552e0e8e22d401ea620d8fdff468/package.json#L100-L105 Since design of `postcss`, this parser is very lenient with syntax. Because of this, the AST is also less detailed, so formatting processes often rely on text-based. On the other hand, `raffia` is relatively strict, so it cannot parse some postcss plugin syntax. While this part clearly creates a difference from Prettier, we have judged that it is not an issue since it still supports major plugins syntax and aligns with current trends.
11 B
11 B
@AGENTS.md