GeezerVison is showing github.com — Also migrate dynamic Oxlint & Oxfmt configurations if they exist · Issue #2430 · voidzero-dev/vite-plus
Also migrate dynamic Oxlint & Oxfmt configurations if they exist #2430
Description
Description
From what I can see it seems like oxlint.config.ts and oxfmt.config.ts doesn't have a migration flow yet. This seems like a bit of low-hanging fruit.
Suggested solution
Probably replicate how Vitest & tsdown are migrated.
Alternative
Manual migration, but we already have their .ox*rc.json(c) versions migratable, why not these ones too?
Additional context
No response
Validations
- Read the Contributing Guidelines.
- Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
- Check that there isn't already an issue requesting the same feature.
Reacted by Cristian Rosescu
Activity
simulacre7 commented on Aug 21, 2026
I'd like to take this one. Withdrawn — I missed that #2483 already implements this. Leaving my empirical findings as review feedback over there.
fengmk2 commented on Oct 14, 2026
The v1.2.0 ecosystem smoke test shows what the missing JS-config migration costs today. Each case also reproduces with the v1.1.0 migrate.
- Migrate removes devDependencies the configs import.
oxfmt, oxlint, and oxlint-tsgolint are dropped from package.json even though oxfmt.config.ts, oxlint.config.ts, or project scripts import them, because detection only recognizes .oxfmtrc / .oxlintrc JSON files. react-doctor resolves oxlint at runtime and its rule-registry script imports oxfmt (PR); dotabod-backend's configs import them (PR).
- Migrate writes
fmt: {} and ignores oxfmt.config.ts, so its own formatting pass uses defaults (double quotes, semicolons) and a project with single quotes and no semicolons fails vp fmt --check on every file migrate touched (115 to 134 files). dotabod-frontend (PR), dotabod-backend (PR).
- The project's existing
vp fmt --config oxfmt.config.ts scripts stop working: Failed to load configuration file. Expected a \fmt` field in the default export of oxfmt.config.ts. The workaround is pointing vite.config.ts fmtat the config and runningvp fmtwithout--config`.
Metadata
Metadata
Development
No branches or pull requestsIssue actions