Skip to content

fix(formatter_css): handle less-test-suites failures - #26513

Merged
graphite-app[bot] merged 1 commit into
mainfrom
09-10-fix_formatter_css_handle_less-test-suites_failures
Sep 10, 2026
Merged

graphite-app[bot] merged 1 commit into
mainfrom
09-10-fix_formatter_css_handle_less-test-suites_failures

Conversation

@leaysgur

Copy link
Copy Markdown
Member

Follow up on #26469 for CSS.

Updated oxc-css-parser to v0.0.15.


  • Keep parens for calc((a + b)) by adding CalcParenthesized AST
    • Do not follow JS formatter approach (remove all, then add back), only works for CSS, not for SCSS/Less
  • Fix Less operand spacing: 2em*1em -> 2em * 1em
  • Rework @import prelude fill
  • Leave glued and( and when( as-is
    • @media screen and (max-width:1280px) { } and @media screen and(max-width:1280px) { } is different
    • We do not alter behavior
  • Format LessMixinDefinition and LessConditionalQualifiedRule
    • We still have a room to go better than Prettier here, but keep for now

Copy link
Copy Markdown
Member Author

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent changes, fast-track this PR to the front of 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.

@leaysgur leaysgur added the run-oxfmt-ecosystem-ci Add to a PR to dispatch Oxfmt Ecosystem CI (oxc-project/oxc-ecosystem-ci) against its branch label Sep 10, 2026
@github-actions github-actions Bot added the A-formatter Area - Formatter (oxfmt). Add F-* labels for details label Sep 10, 2026
@oxc-guard

oxc-guard Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Oxfmt Ecosystem CI

suite oxfmt@latest main refs/pull/26513/head branch
cnpm/cnpmcore ❌ ✅ ✅
monkeytypegame/monkeytype ❌ ✅ ✅
eggjs/egg ❌ ✅ ✅
AmanVarshney01/create-better-t-stack ✅ ✅ ✅
fastify/fastify-vite ❌ ✅ ✅
fuma-nama/fumadocs ✅ ✅ ✅
actualbudget/actual ❌ ✅ ✅
huggingface/huggingface.js ❌ ✅ ✅
vuejs/pinia ❌ ✅ ✅
formatjs/formatjs ✅ ✅ ✅
tale/headplane ❌ ✅ ✅
openclaw/openclaw ✅ 🟨 ✅
Comfy-Org/ComfyUI_frontend ❌ 🟨 ✅
cloudflare/agents ❌ ✅ ✅
lichess-org/lila ❌ ✅ ✅
vercel/turborepo ❌ ✅ ✅
rolldown/rolldown ✅ ✅ ✅
sveltejs/kit ❌ ✅ ✅
getsentry/sentry-javascript ✅ ✅ ✅
aidenybai/react-grab ❌ ✅ ✅
npmx-dev/npmx.dev ✅ ✅ ✅
mantinedev/mantine ✅ 🟨 ✅
cloudflare/workers-sdk ❌ ✅ ✅
dyad-sh/dyad ❌ 🟨 ✅
mastodon/mastodon ⚠️ ✅ ✅
vuejs/core ✅ ✅ ✅
cloudflare/kumo ✅ 🟨 ✅

💥 = panic, ⚠️ = error e.g. parse error (main/branch columns: only new errors), ❌ = diff or exit code mismatch, 🟨 = differs from oxfmt@latest (merged-but-unreleased changes)

@oxc-guard oxc-guard Bot removed the run-oxfmt-ecosystem-ci Add to a PR to dispatch Oxfmt Ecosystem CI (oxc-project/oxc-ecosystem-ci) against its branch label Sep 10, 2026
@codspeed

codspeed Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 67 untouched benchmarks
⏩ 14 skipped benchmarks1


Comparing 09-10-fix_formatter_css_handle_less-test-suites_failures (185c872) with main (029c84b)

Open in CodSpeed

Footnotes

  1. 14 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@leaysgur
leaysgur force-pushed the 09-10-fix_formatter_css_handle_less-test-suites_failures branch from 532bd3f to 185c872 Compare September 10, 2026 03:26
@github-actions github-actions Bot added the A-cli Area - oxlint / oxfmt common CLI behavior: flags, ignore files, oxc_config label Sep 10, 2026
@leaysgur leaysgur added the 0-merge Merge with Graphite Merge Queue label Sep 10, 2026

leaysgur commented Sep 10, 2026 •

Copy link
Copy Markdown
Member Author

Merge activity

Follow up on #26469 for CSS.

Updated `oxc-css-parser` to `v0.0.15`.

---

- Keep parens for `calc((a + b))` by adding `CalcParenthesized` AST
  - Do not follow JS formatter approach (remove all, then add back), only works for CSS, not for SCSS/Less
- Fix Less operand spacing: `2em*1em` -> `2em * 1em`
- Rework `@import` prelude fill
- Leave glued `and(` and `when(` as-is
  - `@media screen and (max-width:1280px) { }` and `@media screen and(max-width:1280px) { }` is different
  - We do not alter behavior
- Format `LessMixinDefinition` and `LessConditionalQualifiedRule`
  - We still have a room to go better than Prettier here, but keep for now
@graphite-app
graphite-app Bot force-pushed the 09-10-fix_formatter_css_handle_less-test-suites_failures branch from 185c872 to aef8b4a Compare September 10, 2026 03:31
@graphite-app
graphite-app Bot merged commit aef8b4a into main Sep 10, 2026
34 checks passed
@graphite-app graphite-app Bot removed the 0-merge Merge with Graphite Merge Queue label Sep 10, 2026
@graphite-app
graphite-app Bot deleted the 09-10-fix_formatter_css_handle_less-test-suites_failures branch September 10, 2026 03:36
graphite-app Bot pushed a commit that referenced this pull request Sep 14, 2026
# Oxlint
### 🚀 Features

- afe950d linter/react: Update lint rules to accomodate changes in React 19.3 (#26571) (Connor Shea)

### 🐛 Bug Fixes

- fb87ed7 linter/unicorn/prefer-array-flat-map: Report `.filter().flatMap()` chains (#26626) (camc314)
- 336b654 linter/unicorn/prefer-at: Report single-character substring calls (#26623) (camc314)
- a5bba6d linter/eslint/no-unused-vars: Respect rest params after-used option (#26579) (Bartok)
- c1470a2 linter/eslint/no-unused-vars: Preserve ambient implicit exports (#26582) (Dex Hunter)
- 9a469d2 linter/unicorn/prefer-global-this: Preserve window event method references (#26611) (Dex Hunter)
- aaff758 linter/unicorn/prefer-default-parameters: Report violation for `??=` and `||=` (#26607) (Bartok)
- 2bed25a linter/unicorn/prefer-array-flat: Skip plain `concat` normalization (#26604) (im10furry)
- 72bc7f2 oxlint: Replace backlashes path for "no js runtime" diagnostic (#26599) (Sysix)
- 1aa5ec1 linter/typescript/prefer-for-of: Handle computed collections (#26584) (camc314)
- 1e90019 linter/typescript: Mark `no-unnecessary-type-parameters` and `prefer-find` suggestions as implemented (#26586) (Mikhail Baev)
- 4231536 linter: Compare label text in runtime optimization assertion (#26526) (camc314)
- 36d5534 linter: Include file path in diagnostic assertion (#26525) (camc314)
- 31508b1 parser: Reject return types on constructor overloads (#26523) (camc314)

### ⚡ Performance

- 1d681b0 linter/react/jsx-pascal-case: Avoid temporary name segment vector (#26531) (camc314)
- 2ad7d49 linter/promise/catch-or-return: Avoid temporary formatting vectors (#26505) (camc314)
- 203235b linter/jsx-a11y/no-static-element-interactions: Avoid role vector (#26504) (camc314)
- 2e95167 linter/jsx-a11y/anchor-is-valid: Avoid temporary attribute vector (#26501) (camc314)
- deafdba linter/react/exhaustive-deps: Avoid temporary dependency vector (#26502) (camc314)
- 4f1627f linter/oxc/branches-sharing-code: Compute deletion spans lazily (#26500) (camc314)
- c068fd2 linter/react/jsx-curly-brace-presence: Avoid newline position allocation (#26499) (camc314)
- ed4357c linter/eslint/no-restricted-properties: Skip empty configurations (#26497) (camc314)
- 92e41b7 linter/oxc/no-barrel-file: Iterate module requests directly (#26498) (camc314)
- 5255ee3 linter/unicorn/prefer-single-call: Avoid temporary argument vector (#26494) (camc314)
- 96ef365 linter/unicorn/prefer-includes: Reduce suggestion allocations (#26492) (camc314)
- a71fd7f linter/unicorn/no-new-buffer: Avoid temporary argument vector (#26491) (camc314)
- 11085e7 linter/jsdoc/require-yields: Short-circuit JSDoc checks (#26488) (camc314)
- 9b1aff8 linter/unicorn/no-useless-undefined: Skip calls without trailing undefined (#26481) (camc314)
- 1e5d5d7 linter/eslint/no-unused-vars: Skip absent global declaration checks (#26457) (camc314)
- 403f899 linter/eslint/no-undef: Check globals once per unresolved name (#26456) (camc314)
- 118adb0 linter/eslint/no-restricted-imports: Avoid redundant import scans (#26455) (camc314)
- ab848f2 linter/eslint/no-useless-assignment: Skip tracking exported symbols (#26449) (camc314)
- 1b6e409 linter/unicorn/prefer-object-from-entries: Avoid allocating configured paths (#26448) (camc314)
- 2206875 linter/eslint/new-cap: Avoid unnecessary callee name allocations (#26447) (camc314)

### 📚 Documentation

- b927e0a linter/typescript/await-thenable: Add missing lang for markdown doc comment (#26438) (Ari Perkkiö)
# Oxfmt
### 🚀 Features

- 586f27a formatter_core: Add `prefix_align` builder and `Tag::(Start|End)Prefix` (#26520) (leaysgur)
- dc45cc3 formatter_test: Test Prettier dynamic snippet tests (#26469) (leaysgur)

### 🐛 Bug Fixes

- d7e0c82 formatter: Keep an enum member's trailing suppress comment (#26549) (leaysgur)
- d2fe01e formatter: Unify suppress comment behavior (#26547) (leaysgur)
- d35d89f oxfmt: Skip shutdown delay on fixed Node 24 releases (#26518) (Pablo García)
- aef8b4a formatter_css: Handle less-test-suites failures (#26513) (leaysgur)
- 9dbddca formatter: Keep group flat for own-line comment in JSX (#26475) (leaysgur)
- d226e6f formatter_yaml: Bump oxc-yaml-parser to 0.0.6 (#26472) (leaysgur)
- 8b41fc0 formatter_yaml: Clamp `tab_width: 0` to 1 to keep semantics (#26471) (leaysgur)
- dea2ba0 formatter_core: Do not panic with align(0) (#26468) (leaysgur)
- bf1d3f6 formatter: Check `this_param` for simple parameters test (#26474) (leaysgur)
- 33cdc84 formatter: Keep cast-target assignment and commented parameter patterns (#26429) (leaysgur)
- 876fbe3 oxfmt: Expand `Fill` parts in tsx-in-vue (#26427) (leaysgur)

### 📚 Documentation

- 66fda4f formatter: Update AGENTS.md comment handling (#26551) (leaysgur)
- 41abcba formatter: Note why jsx-test-suite snippets stay off (#26515) (leaysgur)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cli Area - oxlint / oxfmt common CLI behavior: flags, ignore files, oxc_config A-formatter Area - Formatter (oxfmt). Add F-* labels for details

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant