feat(format): add oxfmt formatter support#52
Merged
Conversation
ualtinok
added a commit
that referenced
this pull request
May 22, 2026
Biome line-length limit triggered after adding "oxfmt" to the formatter enum array in #52. CI on the contributor PR failed lint; auto-format here as a follow-up.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds oxfmt as an optional formatter for TypeScript and JavaScript. It's
auto-detected from its own config files and can be set explicitly with
formatter.typescript: "oxfmt". Biome is still the first formatterauto-detection looks for; oxfmt applies only when there's no Biome config.
What changed
format.rs,configure.rs): detect.oxfmtrc.json,.oxfmtrc.jsonc,and
oxfmt.config.ts; runoxfmt --write <file>; add an install hint; teachformatter_excluded_pathto recognize oxfmt's "no files" messages so anignored path reports
format_skipped_reason: formatter_excluded_pathinsteadof an error.
plugins,
assets/aft.schema.json, and the schema generator.first.
Why biome stays first
Auto-detection order doesn't change. oxfmt is picked only when no biome config
is present, so existing biome projects behave exactly as before.
Validation
cargo fmt --check;cargo test -p agent-file-tools formatbun testfor the opencode and pi config testsbun run typecheckin both pluginsSummary by cubic
Adds optional
oxfmtformatting for TypeScript/JavaScript. It’s auto-detected from its config, stays behindbiomein priority, and can be set withformatter.typescript: "oxfmt". No changes for existingbiomeprojects..oxfmtrc.json,.oxfmtrc.jsonc, andoxfmt.config.ts; runsoxfmt --write <file>.formatter.typescript: "oxfmt"in config; schemas updated in both plugins.oxfmtinnode_modules/.binand shows an install hint when missing.oxfmt“no files” errors toformat_skipped_reason: formatter_excluded_path.Written for commit c505a41. Summary will update on new commits. Review in cubic