Files
oxc-project__oxc/apps/oxfmt/test/cli/migrate_prettier/0.snap.md
leaysgur ea5d09534d fix(oxfmt): update --migrate prettier (#23963)
A bit outdated, updated it to reflect the latest situation.

- Support `svelte` migration
- Better (but not yet complete) `overrides` detection
- Remove warning about `embeddedLanguageFormatting` (already supported)
- etc
2026-06-30 00:59:07 +00:00

931 B

Input

Command

oxfmt --migrate prettier

File tree

- fixtures/
  - already_exists/
    - .oxfmtrc.json
  - basic_config/
    - .prettierrc
  - default_printwidth/
    - .prettierrc
  - no_config/ <CWD>
    - .gitkeep
  - overrides_json/
    - .prettierrc.json
  - overrides_jsonc/
    - .prettierrc.json5
  - overrides_yaml/
    - .prettierrc.yaml
  - sort_pkg_disabled/
    - .prettierrc
  - sort_pkg_enabled/
    - .prettierrc
  - svelte_plugin/
    - .prettierrc
  - tailwind_empty/
    - .prettierrc
  - tailwind_options/
    - .prettierrc
  - tailwind_regex/
    - .prettierrc
  - unsupported_opts/
    - .prettierrc
  - with_ignore/
    - .prettierignore
    - .prettierrc

Result

Exit code

0

stdout

No Prettier configuration file found.
Created `.oxfmtrc.json` instead.

stderr


File changes

no_config/.oxfmtrc.json (created)

{
  "ignorePatterns": []
}