Skip to content

Conversation

@Boshen
Copy link
Member

@Boshen Boshen commented Dec 8, 2025

Toml formatting is missing but there's only a few toml files, can wait
for oxfmt plugins.

Copilot AI review requested due to automatic review settings December 8, 2025 10:40
@github-actions github-actions bot added the C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior label Dec 8, 2025
@Boshen Boshen marked this pull request as draft December 8, 2025 10:40
Copy link
Member Author

Boshen commented Dec 8, 2025


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 hot fixes, skip the queue and merge this PR next

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.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the project's formatting infrastructure from dprint to oxfmt, completing the transition to using oxfmt for all supported file types (JavaScript, TypeScript, JSON, YAML, Markdown, CSS, HTML, etc.). TOML formatting is acknowledged as missing but deferred until oxfmt plugin support is available.

Key Changes:

  • Removed dprint as a project dependency and deleted its configuration
  • Updated oxfmtrc.jsonc with additional ignore patterns for CHANGELOG.md, snapshot files, and pnpm-lock.yaml
  • Updated all GitHub workflows to remove dprint installation and caching steps

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
oxfmtrc.jsonc Added ignore patterns for CHANGELOG.md, *.snap.md files, and pnpm-lock.yaml
justfile Removed dprint from init command and fmt recipe; updated documentation comments
dprint.json Deleted entire dprint configuration file
AGENTS.md Removed dprint from the list of pre-installed tools
.github/workflows/update_submodules.yml Removed dprint from tools list
.github/workflows/dprint.yml Deleted entire workflow for dprint plugin caching
.github/workflows/copilot-setup-steps.yml Removed dprint tool installation and cache restoration steps
.github/workflows/autofix.yml Removed dprint tool installation and cache restoration steps

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

"napi/{parser,transform,minify,playground}/**/browser.js",
"npm/runtime/src",
"npm/oxc-types/types.d.ts",
"pnpm-lock.yaml",
Copy link

Copilot AI Dec 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ignore patterns are missing some entries that were previously excluded by dprint.json. The following files should also be added to the ignore list as they are generated or configuration files that should not be formatted:

  • pnpm-workspace.yaml (configuration file, should not be auto-formatted)
  • npm/*/package.json (generated by npm/oxlint/scripts/generate-packages.js and similar scripts)
  • npm/{oxlint,oxfmt}/configuration_schema.json (generated from Rust code in test files)

These files were explicitly excluded in the removed dprint.json configuration.

Suggested change
"pnpm-lock.yaml",
"pnpm-lock.yaml",
"pnpm-workspace.yaml",
"npm/*/package.json",
"npm/{oxlint,oxfmt}/configuration_schema.json",

Copilot uses AI. Check for mistakes.
@Boshen Boshen force-pushed the 12-08-chore_infra_use_oxfmt_for_all_files_remove_dprint branch from 0723a18 to 42ffa36 Compare December 8, 2025 12:42
@github-actions github-actions bot added A-linter Area - Linter A-parser Area - Parser A-cli Area - CLI A-minifier Area - Minifier A-transformer Area - Transformer / Transpiler A-editor Area - Editor and Language Server A-formatter Area - Formatter A-linter-plugins Area - Linter JS plugins labels Dec 8, 2025
closes #16602

Toml formatting is missing but there's only a few toml files, can wait
for oxfmt plugins.
@Boshen Boshen force-pushed the 12-08-chore_infra_use_oxfmt_for_all_files_remove_dprint branch from 42ffa36 to 987b9f2 Compare December 8, 2025 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cli Area - CLI A-editor Area - Editor and Language Server A-formatter Area - Formatter A-linter Area - Linter A-linter-plugins Area - Linter JS plugins A-minifier Area - Minifier A-parser Area - Parser A-transformer Area - Transformer / Transpiler C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants