Migrate oxc

From NazmusSayad/.dotfiles · View interactive version

Migrate oxc is an AI agent skill from the GitHub repository NazmusSayad/.dotfiles. Migrates ESLint and Prettier projects to Oxlint and Oxfmt.

How to use this skill

Skill file

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:

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:

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:

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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.