migrate-oxlint
БесплатноБез исполняемых скриптовНе проверенGuide for migrating a project from ESLint to Oxlint or upgrading legacy React Compiler lint configuration. Use when asked to switch a JavaScript/TypeScript…
от oxc-project★ 23 705 звёзд на GitHubОб этом скилле
This skill guides you through migrating a JavaScript/TypeScript project from ESLint to Oxlint.
For an existing Oxlint or Vite+ configuration using react/react-compiler, follow
React Compiler rule migration. That upgrade does
not require running the ESLint migration tool.
Overview
Oxlint is a high-performance linter that implements many popular ESLint rules natively in Rust. It can be used alongside ESLint or as a full replacement.
An official migration tool is available, and will be used by this skill: @oxlint/migrate
Step 1: Run Automated Migration
Run the migration tool in the project root:
npx @oxlint/migrate
This reads your ESLint flat config (eslint.config.js for example) and generates a .oxlintrc.json file from it. It will find your ESLint config file automatically in most cases.
See options below for more info.
Key Options
| Option | Description |
|---|---|
--type-aware |
Include type-aware rules from @typescript-eslint (will require the oxlint-tsgolint package to be installed after migrating) |
--with-nursery |
Include experimental rules still under development, may not be fully stable or consistent with ESLint equivalents |
--js-plugins [bool] |
Enable/disable ESLint plugin migration via jsPlugins (default: enabled) |
--details |
List rules that could not be migrated |
--replace-eslint-comments |
Convert all // eslint-disable comments to // oxlint-disable |
--output-file <file> |
Specify a different output path (default: .oxlintrc.json) |
If your ESLint config is not at the default location, pass the path explicitly:
npx @oxlint/migrate ./path/to/eslint.config.js
Step 2: Review Generated Config
After migration, review the generated .oxlintrc.json.
Plugin Mapping
The migration tool automatically maps ESLint plugins to oxlint's built-in equivalents. The following table is for reference when reviewing the generated config:
| ESLint Plugin | Oxlint Plugin Name |
|---|---|
@typescript-eslint/eslint-plugin |
typescript |
eslint-plugin-react / eslint-plugin-react-hooks |
react |
eslint-plugin-import / eslint-plugin-import-x |
import |
eslint-plugin-unicorn |
unicorn |
eslint-plugin-jsx-a11y / eslint-plugin-jsx-a11y-x |
jsx-a11y |
eslint-plugin-react-perf |
react-perf |
eslint-plugin-promise |
promise |
eslint-plugin-jest |
jest |
@vitest/eslint-plugin |
vitest |
eslint-plugin-jsdoc |
jsdoc |
eslint-plugin-next |
nextjs |
eslint-plugin-node |
node |
eslint-plugin-vue |
vue |
Default plugins (enabled when plugins field is omitted): unicorn, typescript, oxc.
Setting the plugins array explicitly overrides these defaults.
ESLint core rules are usable in oxlint without needing to configure a plugin in the config file.
Rule Categories
Oxlint groups rules into categories for bulk configuration, though only correctness is enabled by default:
{
"categories": {
"correctness": "error",
"suspicious": "warn"
}
}
Available categories: correctness (default: enabled), suspicious, pedantic, perf, style, restriction, nursery.
Individual rule settings in rules override category settings.
@oxlint/migrate will turn correctness off to avoid enabling additional rules that weren't enabled by your ESLint config. You can choose to enable additional categories after migration if desired.
Check Unmigrated Rules
Run with --details to see which ESLint rules could not be migrated:
npx @oxlint/migrate --details
Review the output and decide whether to keep ESLint for those rules or not. Some r
Установить migrate-oxlint в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл migrate-oxlint?
Guide for migrating a project from ESLint to Oxlint or upgrading legacy React Compiler lint configuration. Use when asked to switch a JavaScript/TypeScript project's linter to Oxlint or replace the removed react/react-compiler rule.
Как установить скилл migrate-oxlint?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл migrate-oxlint запускает скрипты?
Нет, скилл состоит только из инструкций (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