migrate-oxc
БесплатноБез исполняемых скриптовНе проверенMigrates ESLint and Prettier projects to Oxlint and Oxfmt.
от NazmusSayad★ 137 звёзд на GitHubОб этом скилле
Clone create-src into a temporary directory and use the clone as the reference. Match its configuration structure exactly, but derive the actual rules, severities, options, ignores, and overrides from the project being migrated.
Goal
Replace ESLint and Prettier completely while preserving supported rules, severities, options, ignores, overrides, and project integrations. Prefer the simplest native Oxc setup that does so.
Migration
Inspect the whole repository before editing. Include generated templates, package scripts, hooks, CI, editor settings, generator code, documentation, dependencies, and committed lockfiles.
Follow the reference architecture:
- Keep
oxlint.configandeslint-recommendedtogether at each project root. - Use
.mtsfor ESM-style TypeScript configs in CommonJS packages; otherwise follow the package module format. - Keep an explicit ESLint-compatible recommended rule map where Oxlint's preset is not equivalent.
- Prefer native Oxlint rules and plugins. Use JS plugins only for gaps the project actually relies on.
- Do not build custom compatibility layers for unsupported ESLint rules. Preserve what Oxc supports and clearly identify intentional losses.
- Preserve project-specific rules and overrides instead of forcing one config everywhere. React plugins and settings belong only in React projects; limits, test exceptions, and unused-variable patterns stay where they originally applied.
- Keep each generated template self-contained.
- Keep
.oxfmtrc.jsonminimal and project-specific. Enable Tailwind sorting only for Tailwind projects, and do not copy unrelated ignores from the reference.
For type-aware linting, use oxlint-tsgolint and options.typeAware. It does not replace tsc --noEmit. Resolve reported TypeScript configuration incompatibilities rather than disabling type-aware linting; known fixes include using moduleResolution: "bundler" for bundler-based ESM projects and setting rootDir when output layout cannot be inferred. Nested template configs may need validation with an explicit config path, such as oxlint -c ./oxlint.config.mts ..
Commands and integrations
Use eslint-plugin-oxfmt so Oxlint checks and fixes JS/TS formatting:
lintruns type checking when the project already requires it, then Oxlint.lint:fixruns onlyoxlint --fix.- Do not add
lint:formator follow Oxlint with Oxfmt for code files. - In lint-staged, use Oxlint for code and Oxfmt only for non-code formats such as JSON, Markdown, YAML, and CSS.
- Generated-project finalization should likewise avoid a second code-formatting pass.
Remove obsolete direct ESLint and Prettier tooling, then add only the Oxc packages and JS plugins used by the resulting configuration. ESLint may remain transitively through a JS plugin. Update committed lockfiles, but do not introduce lockfiles into templates that did not already track one. Update relevant editor recommendations and documentation too.
Verification
Run the final, user-facing workflows after the last edit; an earlier successful run does not verify later script changes:
- Root and template
lintandlint:fixcommands - Type checking where applicable
- Template configs in their standalone context
- Oxfmt checks for supported non-code files
- Hook and generator commands
Search once more for stale ESLint or Prettier configs, dependencies, scripts, documentation, lint:format, and duplicate oxlint/oxfmt pipelines.
Do not claim a hook was tested end to end unless it was run with staged files. Otherwise, state that its underlying commands were verified.
Установить migrate-oxc в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл migrate-oxc?
Migrates ESLint and Prettier projects to Oxlint and Oxfmt.
Как установить скилл migrate-oxc?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл migrate-oxc запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic