mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
ea5d09534d
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
1.2 KiB
1.2 KiB
Input
Command
oxfmt --migrate prettier
File tree
- fixtures/
- already_exists/
- .oxfmtrc.json
- basic_config/
- .prettierrc
- default_printwidth/
- .prettierrc
- no_config/
- .gitkeep
- overrides_json/ <CWD>
- .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
Found Prettier configuration at: <cwd>/.prettierrc.json
Created `.oxfmtrc.json`.
stderr
- "printWidth" is not set in Prettier config, defaulting to 80 (Oxfmt default: 100)
- "overrides" cannot be migrated automatically. See: https://github.com/oxc-project/oxc/issues/18215
File changes
overrides_json/.oxfmtrc.json (created)
{
"semi": false,
"printWidth": 80,
"sortPackageJson": false,
"ignorePatterns": []
}