migrate-oxlint-config
Installation
SKILL.md
Migrate to @cloudflare/oxlint-config
Commit a passing baseline
- Run the project's current lint command to establish its baseline. Adopt
the preset using the setup for the project's lint command in the package
README. Use
@cloudflare/oxlint-configwith standalone Oxlint or@cloudflare/oxlint-config/vite-pluswithvp lint. Update the project's lint command and CI where needed. Carry forward applicable project rules, ignore patterns, environments, and file overrides. Keep the project's type-check command. If the old preset ran the compiler in CI, preserve that coverage with a separate type-check command oroptions.typeCheck: true. - Run the project's lint command with the new preset across the same files
checked in CI. Temporarily set each newly failing rule to
'off'in the project config. This may disable most of the preset in a large migration. Keep the rest enabled. For example, add'typescript/no-unsafe-assignment': 'off'torulesinoxlint.config.tsor tolint.rulesin a Vite+ project'svite.config.ts.