Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

migrate-oxc

БесплатноБез исполняемых скриптовНе проверен

Migrates ESLint and Prettier projects to Oxlint and Oxfmt.

NazmusSayadот 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.config and eslint-recommended together at each project root.
  • Use .mts for 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.json minimal 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:

  • lint runs type checking when the project already requires it, then Oxlint.
  • lint:fix runs only oxlint --fix.
  • Do not add lint:format or 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 lint and lint:fix commands
  • 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.

Полный SKILL.md на GitHub

Установить migrate-oxc в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/openai.yaml

FAQ

Что делает скилл migrate-oxc?

Migrates ESLint and Prettier projects to Oxlint and Oxfmt.

Как установить скилл migrate-oxc?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл migrate-oxc запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить migrate-oxc с