Skip to content

refactor(formatter_css): update oxc_formatter_css to support sortTailwindcss option#23323

Merged
graphite-app[bot] merged 1 commit into
mainfrom
06-12-refactor_formatter_css_update_oxc_formatter_to_support_sorttailwindcss
Jun 29, 2026
Merged

refactor(formatter_css): update oxc_formatter_css to support sortTailwindcss option#23323
graphite-app[bot] merged 1 commit into
mainfrom
06-12-refactor_formatter_css_update_oxc_formatter_to_support_sorttailwindcss

Conversation

@leaysgur

@leaysgur leaysgur commented Jun 12, 2026

Copy link
Copy Markdown
Member
  • Before this PR: If sortTailwindcss option is enabled for CSS/LESS/SCSS, it was formatted by Prettier
  • After this PR: oxc_formatter_css also handles sortTailwindcss as like oxc_formatter does

leaysgur commented Jun 12, 2026

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.

@codspeed-hq

codspeed-hq Bot commented Jun 12, 2026

Copy link
Copy Markdown

Merging this PR will improve performance by 3.61%

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 10 improved benchmarks
❌ 4 regressed benchmarks
✅ 48 untouched benchmarks
⏩ 9 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Simulation pipeline[kitchen-sink.tsx] 110.2 ms 120.6 ms -8.63%
Simulation pipeline[App.tsx] 34.4 ms 36.5 ms -5.83%
Simulation pipeline[binder.ts] 13.3 ms 13.9 ms -4.2%
Simulation pipeline[react.development.js] 4.8 ms 5 ms -3.14%
Simulation linter[kitchen-sink.tsx] 218.8 ms 180.3 ms +21.36%
Simulation linter[binder.ts] 33.8 ms 30.7 ms +10.12%
Simulation linter[App.tsx] 107.8 ms 98.3 ms +9.61%
Simulation formatter[errors.ts] 613.8 µs 569.5 µs +7.79%
Simulation linter[react.development.js] 15.4 ms 14.4 ms +6.87%
Simulation isolated-declarations[vue-id.ts] 52.8 ms 49.7 ms +6.19%
Simulation formatter[handle-comments.js] 2.9 ms 2.8 ms +4.11%
Simulation formatter[core.js] 1.6 ms 1.6 ms +3.44%
Simulation formatter[index.tsx] 3.9 ms 3.8 ms +3.35%
Simulation formatter[next.ts] 2.3 ms 2.3 ms +3.12%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing 06-12-refactor_formatter_css_update_oxc_formatter_to_support_sorttailwindcss (a7395f7) with 06-11-refactor_oxfmt_use_rust_formatters_for_jsdoc_code_fence (020287d)2

Open in CodSpeed

Footnotes

  1. 9 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.

  2. No successful run was found on 06-11-refactor_oxfmt_use_rust_formatters_for_jsdoc_code_fence (3b1be74) during the generation of this report, so 9f04c29 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@leaysgur leaysgur force-pushed the 06-11-refactor_oxfmt_use_rust_formatters_for_jsdoc_code_fence branch from 834f364 to d1d9281 Compare June 12, 2026 07:42
@leaysgur leaysgur force-pushed the 06-12-refactor_formatter_css_update_oxc_formatter_to_support_sorttailwindcss branch from 2d75705 to ed0a7d9 Compare June 12, 2026 07:42
@leaysgur leaysgur force-pushed the 06-11-refactor_oxfmt_use_rust_formatters_for_jsdoc_code_fence branch from d1d9281 to 19c595b Compare June 12, 2026 07:44
@leaysgur leaysgur force-pushed the 06-12-refactor_formatter_css_update_oxc_formatter_to_support_sorttailwindcss branch 2 times, most recently from fdc75db to f812916 Compare June 12, 2026 07:47
@leaysgur leaysgur force-pushed the 06-11-refactor_oxfmt_use_rust_formatters_for_jsdoc_code_fence branch from 49116ab to 72fb010 Compare June 12, 2026 07:58
@leaysgur leaysgur force-pushed the 06-12-refactor_formatter_css_update_oxc_formatter_to_support_sorttailwindcss branch 2 times, most recently from 0444ce7 to 846de51 Compare June 12, 2026 08:25
@leaysgur leaysgur force-pushed the 06-11-refactor_oxfmt_use_rust_formatters_for_jsdoc_code_fence branch from 72fb010 to 45b346e Compare June 12, 2026 08:25
@leaysgur leaysgur force-pushed the 06-12-refactor_formatter_css_update_oxc_formatter_to_support_sorttailwindcss branch from 846de51 to c54fcbe Compare June 12, 2026 08:45
@leaysgur leaysgur force-pushed the 06-11-refactor_oxfmt_use_rust_formatters_for_jsdoc_code_fence branch from 45b346e to ac7386c Compare June 12, 2026 08:45
@leaysgur leaysgur force-pushed the 06-12-refactor_formatter_css_update_oxc_formatter_to_support_sorttailwindcss branch from c54fcbe to e82ca18 Compare June 15, 2026 01:28
@leaysgur leaysgur force-pushed the 06-11-refactor_oxfmt_use_rust_formatters_for_jsdoc_code_fence branch from ac7386c to 231cc6b Compare June 15, 2026 01:28
@leaysgur leaysgur force-pushed the 06-12-refactor_formatter_css_update_oxc_formatter_to_support_sorttailwindcss branch from e82ca18 to 29dc930 Compare June 15, 2026 09:19
@leaysgur leaysgur force-pushed the 06-12-refactor_formatter_css_update_oxc_formatter_to_support_sorttailwindcss branch from 86ff7ea to 98fba53 Compare June 25, 2026 01:30
@leaysgur leaysgur force-pushed the 06-11-refactor_oxfmt_use_rust_formatters_for_jsdoc_code_fence branch 2 times, most recently from 6f28d30 to 318ffdf Compare June 25, 2026 01:39
@leaysgur leaysgur force-pushed the 06-12-refactor_formatter_css_update_oxc_formatter_to_support_sorttailwindcss branch from 98fba53 to 5f409de Compare June 25, 2026 01:39
@leaysgur leaysgur force-pushed the 06-11-refactor_oxfmt_use_rust_formatters_for_jsdoc_code_fence branch from 318ffdf to fcf1c2e Compare June 25, 2026 15:02
@leaysgur leaysgur force-pushed the 06-12-refactor_formatter_css_update_oxc_formatter_to_support_sorttailwindcss branch from 5f409de to acd3b8e Compare June 25, 2026 15:02
@leaysgur leaysgur force-pushed the 06-12-refactor_formatter_css_update_oxc_formatter_to_support_sorttailwindcss branch from acd3b8e to f9caea9 Compare June 26, 2026 07:00
@leaysgur leaysgur force-pushed the 06-11-refactor_oxfmt_use_rust_formatters_for_jsdoc_code_fence branch from fcf1c2e to fbe56a6 Compare June 26, 2026 07:00
@leaysgur leaysgur force-pushed the 06-11-refactor_oxfmt_use_rust_formatters_for_jsdoc_code_fence branch from fbe56a6 to 5ac1f9d Compare June 29, 2026 02:31
@leaysgur leaysgur force-pushed the 06-12-refactor_formatter_css_update_oxc_formatter_to_support_sorttailwindcss branch from f9caea9 to 298b185 Compare June 29, 2026 02:31
@graphite-app graphite-app Bot added the 0-merge Merge with Graphite Merge Queue label Jun 29, 2026
@graphite-app graphite-app Bot force-pushed the 06-11-refactor_oxfmt_use_rust_formatters_for_jsdoc_code_fence branch from 3b1be74 to 1f8e80f Compare June 29, 2026 03:01
@graphite-app graphite-app Bot force-pushed the 06-12-refactor_formatter_css_update_oxc_formatter_to_support_sorttailwindcss branch from a7395f7 to c4d29f4 Compare June 29, 2026 03:02
@graphite-app

graphite-app Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Merge activity

…ailwindcss` option (#23323)

- Before this PR: If `sortTailwindcss` option is enabled for CSS/LESS/SCSS, it was formatted by Prettier
- After this PR: `oxc_formatter_css` also handles `sortTailwindcss` as like `oxc_formatter` does
@graphite-app graphite-app Bot force-pushed the 06-11-refactor_oxfmt_use_rust_formatters_for_jsdoc_code_fence branch from 1f8e80f to 9d2a957 Compare June 29, 2026 03:16
@graphite-app graphite-app Bot force-pushed the 06-12-refactor_formatter_css_update_oxc_formatter_to_support_sorttailwindcss branch from c4d29f4 to 43aa5fe Compare June 29, 2026 03:17
@graphite-app graphite-app Bot removed the 0-merge Merge with Graphite Merge Queue label Jun 29, 2026
Base automatically changed from 06-11-refactor_oxfmt_use_rust_formatters_for_jsdoc_code_fence to main June 29, 2026 03:26
@graphite-app graphite-app Bot merged commit 43aa5fe into main Jun 29, 2026
31 checks passed
@graphite-app graphite-app Bot deleted the 06-12-refactor_formatter_css_update_oxc_formatter_to_support_sorttailwindcss branch June 29, 2026 03:28
camc314 pushed a commit that referenced this pull request Jul 3, 2026
…ailwindcss` option (#23323)

- Before this PR: If `sortTailwindcss` option is enabled for CSS/LESS/SCSS, it was formatted by Prettier
- After this PR: `oxc_formatter_css` also handles `sortTailwindcss` as like `oxc_formatter` does
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cli Area - CLI A-formatter Area - Formatter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant