Skip to content

Switch from prettier to oxfmt#1924

Merged
coyotte508 merged 11 commits intomainfrom
oxfmt
Jan 20, 2026
Merged

Switch from prettier to oxfmt#1924
coyotte508 merged 11 commits intomainfrom
oxfmt

Conversation

@coyotte508
Copy link
Copy Markdown
Member

@coyotte508 coyotte508 commented Jan 20, 2026

https://oxc.rs/ - made by vite creator

3x faster than biome, 35x faster than prettier

But most importantly : the extension works on cursor. Prettier just stopped working. So was a good opportunity to switch.

The trailingComma default is different, I prefer oxfmt's one (means less diffs in the future, less git conflicts), which is where ~1000 lines change come from


Note

Switches repository formatting from Prettier to oxfmt and aligns tooling.

  • Add oxfmt config (.oxfmtrc.json), update package.json scripts to use oxfmt, and remove .prettierrc
  • Set VS Code to use oxc.oxc-vscode (formatOnSave), extend .editorconfig to JS/TS/JSON, and add devcontainer extension
  • Update package manifests (keywords/ordering/engines/exports) and add packageManager where missing
  • Apply formatting-only edits (commas, trailing commas, parameter lists) across TS/JS files; no functional logic changes

Written by Cursor Bugbot for commit 2166d77. This will update automatically on new commits. Configure here.

@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

Copy link
Copy Markdown
Member

@pcuenca pcuenca left a comment

Choose a reason for hiding this comment

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

Can't comment on the specific rules, just a reminder to update .git-blame-ignore-revs as a follow up PR.

@coyotte508 coyotte508 merged commit d484397 into main Jan 20, 2026
7 checks passed
@coyotte508 coyotte508 deleted the oxfmt branch January 20, 2026 11:50
@coyotte508
Copy link
Copy Markdown
Member Author

Can't comment on the specific rules, just a reminder to update .git-blame-ignore-revs as a follow up PR.

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants