Skip to content

chore: migrate from Prettier to Oxfmt#341

Merged
mizdra merged 3 commits intomainfrom
migrate-from-prettier-to-oxfmt
Feb 19, 2026
Merged

chore: migrate from Prettier to Oxfmt#341
mizdra merged 3 commits intomainfrom
migrate-from-prettier-to-oxfmt

Conversation

@mizdra
Copy link
Copy Markdown
Owner

@mizdra mizdra commented Feb 19, 2026

prettier --no-cache vs oxfmt

Oxfmt wins.

$ hyperfine --warmup 3 "cd .git/git-wt/prettier && npm run lint:prettier -- --no-cache" "cd .git/git-wt/oxfmt && npm run lint:oxfmt"
Benchmark 1: cd .git/git-wt/prettier && npm run lint:prettier -- --no-cache
  Time (mean ± σ):     835.7 ms ±  14.4 ms    [User: 1366.3 ms, System: 137.4 ms]
  Range (min … max):   818.7 ms … 860.6 ms    10 runs

Benchmark 2: cd .git/git-wt/oxfmt && npm run lint:oxfmt
  Time (mean ± σ):     469.4 ms ±  17.9 ms    [User: 1946.3 ms, System: 366.7 ms]
  Range (min … max):   447.5 ms … 498.1 ms    10 runs

Summary
  cd .git/git-wt/oxfmt && npm run lint:oxfmt ran
    1.78 ± 0.07 times faster than cd .git/git-wt/prettier && npm run lint:prettier -- --no-cache

prettier --cache vs oxfmt

Prettier wins.

$ hyperfine --warmup 3 "cd .git/git-wt/prettier && npm run lint:prettier" "cd .git/git-wt/oxfmt && npm run lint:oxfmt"
Benchmark 1: cd .git/git-wt/prettier && npm run lint:prettier
  Time (mean ± σ):     406.7 ms ±   5.1 ms    [User: 292.6 ms, System: 97.6 ms]
  Range (min … max):   398.9 ms … 416.8 ms    10 runs

Benchmark 2: cd .git/git-wt/oxfmt && npm run lint:oxfmt
  Time (mean ± σ):     455.2 ms ±   5.9 ms    [User: 1911.1 ms, System: 355.3 ms]
  Range (min … max):   447.5 ms … 465.6 ms    10 runs

Summary
  cd .git/git-wt/prettier && npm run lint:prettier ran
    1.12 ± 0.02 times faster than cd .git/git-wt/oxfmt && npm run lint:oxfmt

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Feb 19, 2026

🦋 Changeset detected

Latest commit: f0bc811

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@css-modules-kit/core Patch
@css-modules-kit/ts-plugin Patch
@css-modules-kit/codegen Patch
@css-modules-kit/eslint-plugin Patch
@css-modules-kit/stylelint-plugin Patch
css-modules-kit-vscode Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@mizdra mizdra added the Type: Maintenance Repository Maintenance label Feb 19, 2026
mizdra and others added 3 commits February 19, 2026 22:10
- Replace prettier + @mizdra/prettier-config-mizdra with oxfmt + @mizdra/oxfmt-config
- Replace lint:prettier script with lint:oxfmt
- Remove .prettierignore (ignore patterns moved to lint:oxfmt script flags)
- Update CI to remove prettier cache
- Update VS Code settings to remove prettier-vscode references
- Update CLAUDE.md tech stack

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mizdra mizdra force-pushed the migrate-from-prettier-to-oxfmt branch from fcf1dcd to f0bc811 Compare February 19, 2026 13:10
"version": "0.1.2"
"version": "0.1.2",
"private": true
}
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Oxfmt sorts package.json.

start: diagnostic.start,
length: diagnostic.length,
}
: {}),
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Oxfmt does not support experimentalTernaries yet.

ref: oxc-project/oxc#14914

@mizdra mizdra merged commit 70660f4 into main Feb 19, 2026
19 checks passed
@mizdra mizdra deleted the migrate-from-prettier-to-oxfmt branch February 19, 2026 13:19
@github-actions github-actions bot mentioned this pull request Feb 19, 2026
@mizdra mizdra changed the title chore: migrate from Prettier to oxfmt chore: migrate from Prettier to Oxfmt Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Maintenance Repository Maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant