migrate-oxfmt

Migrate Prettier or Biome formatting configs to Oxfmt's .oxfmtrc.json.

22.3k|1.2k|Updated Feb 9, 2023
One-click install
npx skills add https://github.com/oxc-project/oxc --skill migrate-oxfmt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: migrate-oxfmt
Source: https://github.com/oxc-project/oxc/tree/main/.agents/skills/migrate-oxfmt
Command: npx skills add https://github.com/oxc-project/oxc --skill migrate-oxfmt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Migrating JavaScript/TypeScript formatting configurations from Prettier or Biome to Oxfmt to reduce manual reconfiguration and ensure consistent formatting across projects.

Core Features & Use Cases

  • Automated migration of Prettier and Biome configs to .oxfmtrc.json, including supported options and mappings.
  • Migration of ignore patterns from Prettier/.prettierignore or Biome equivalents to Oxfmt's ignorePatterns, plus plugin option mappings (where applicable).
  • Guidance for validating the generated configuration, updating CI/scripts, and handling cases where manual adjustments are required.

Quick Start

Run the automated migration to convert Prettier or Biome settings to Oxfmt and generate the .oxfmtrc.json.

Frequently Asked Questions about migrate-oxfmt

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate Prettier config to Oxfmt?

To migrate Prettier config to Oxfmt, the automated process reads your existing settings, maps supported options, and generates a new .oxfmtrc.json file. It also transfers ignore patterns from .prettierignore to Oxfmt's ignorePatterns.

How do I migrate Biome formatter configuration to Oxfmt?

Migrating Biome formatter configuration to Oxfmt involves reading your Biome settings and mapping them to equivalent Oxfmt options. The migration generates a .oxfmtrc.json file and converts Biome ignore patterns into Oxfmt's ignorePatterns.

Can I transfer ignore patterns from Prettier or Biome to Oxfmt?

Yes, you can transfer ignore patterns during configuration migration. The process reads ignore rules from .prettierignore or Biome equivalents and automatically maps them into Oxfmt's ignorePatterns within the generated .oxfmtrc.json.

What is the best way to update CI scripts after migrating to Oxfmt?

After migrating to Oxfmt, update your CI scripts by following the provided guidance for validating the generated .oxfmtrc.json. The migration includes instructions for integrating Oxfmt into your pipeline and handling manual adjustments.

Are all Prettier and Biome formatting options supported in Oxfmt?

Not all Prettier and Biome formatting options are fully supported. The migration maps supported options and provides guidance for manual adjustments where direct mappings are unavailable, ensuring consistent formatting across projects.

Does Oxfmt support plugin option mappings from Prettier?

Yes, Oxfmt supports plugin option mappings from Prettier where applicable. The automated migration reads these plugin settings and attempts to map them into the generated .oxfmtrc.json file alongside standard formatting options.