Changelog - 2026-10-23
Formatting moves to bun fmt and bunfig.toml
Breaking Change EnhancementIn one line. devz lint and the Makefile format with bun fmt, the format lives in one [fmt] table in bunfig.toml, and the oxfmt presets are gone.
toml
# bunfig.toml
[fmt]
printWidth = 100
singleQuote = true
arrowParens = "avoid"
flavor = "oxfmt"What changed
devz lintformats withbun fmt. The third step isbun fmt --no-script, with--checkunless you pass--fix. Each pattern in.configs/formatters/.ignorereaches it as--ignore-pattern.- The format is one table.
bun fmtreads[fmt]in thebunfig.tomlof the folder it runs in or of any parent, so one root file serves every package. The table above gives the outputoxfmtproduced;flavor = "oxfmt"keeps it that way onceoxfmtis no longer installed. Without it Bun formats like Prettier. - More than code is formatted.
devz lintandmake lintalso check every.json,.jsonc,.yml,.yaml,.css,.htmland.vuefile; Markdown and languagesbun fmtdoes not support, such as.astro, are not formatted. A file a tool regenerates on its own (drizzle-kit snapshots) goes in.configs/formatters/.ignore. package.jsonkeys are sorted.bun fmtorders the keys likesort-package-jsonand alphabetizes the dependency blocks. SetsortPackageJson = falsein[fmt]to keep your own order.- Bun 1.4.4 is the floor.
@venizia/dev-configsdeclares"bun": ">=1.4.4". - The
oxfmtconfig files are gone. Bun loads anoxfmt.config.mtswhen it finds one, and fails if@venizia/dev-configs/formattersno longer resolves.
Breaking changes
WARNING
@venizia/dev-configs no longer exports oxfmtConfigs, browserOxfmtConfigs and prettierConfigs, and the @venizia/dev-configs/formatters subpath is removed. The oxfmt and prettier peer dependencies are gone, and eslintConfigs (and ReactEslintConfigs) no longer include the Prettier rule or its eslint-plugin-prettier and eslint-config-prettier dependencies.
Before:
typescript
// .configs/formatters/oxfmt.config.mts
import { defineConfig } from 'oxfmt';
import { oxfmtConfigs } from '@venizia/dev-configs/formatters';
export default defineConfig(oxfmtConfigs);After:
- Add the
[fmt]table above to thebunfig.tomlat the root of your repository. - Delete every
.configs/formatters/oxfmt.config.mts; keep.configs/formatters/.ignore. - Remove
oxfmtfrom yourdevDependenciesand your catalog. - Use Bun 1.4.4 or newer.
- A project that sorts Tailwind classes adds
sortTailwindcss = trueand installstailwindcss; one that must not sortpackage.jsonaddssortPackageJson = false.
Who is affected
| You have | Do this |
|---|---|
A project that runs devz lint | The steps above |
JSON, YAML, CSS, HTML or Vue files, or a package.json out of sort-package-json order | Run devz lint --fix once; the lint fails until then |
A fmt script in package.json | bun fmt would run it; devz lint passes --no-script, so it still formats. Prefer not to name a script fmt |
| The VS Code Oxc extension for formatting | It formats with oxfmt, which is no longer a dependency; format with bun fmt or devz lint --fix |
| A project that used the Prettier lint rule | Drop prettier from its dependencies |