Run Oxlint before ESLint
Run Oxlint before ESLint, move overlapping rules one at a time, and test that the second pass starts only on success.
You want lint errors sooner, but your ESLint config also contains project rules you need to keep. Run Oxlint first, move a small set of rules to it, and leave the remaining checks with ESLint until you can match their behavior.
Give each rule an owner
Pick one overlapping rule and turn it on in Oxlint before disabling it in ESLint. For example, put this in .oxlintrc.json with both tools installed as development dependencies.
{
"categories": {
"correctness": "off"
},
"rules": {
"no-debugger": "error"
}
}Oxlint now reports a debugger statement as an error. This fixture turns off the default correctness category to isolate the rule being moved. In an existing config, keep your current categories and add the rule under rules.
In your existing ESLint flat config, set "no-debugger": "off" in a rules block that applies to the same files. Keep your project rules enabled there. Before you move a more complex rule, check its options and the paths it covers. Check both tools’ ignore patterns too. If Oxlint skips a directory ESLint checks, disabling the ESLint rule leaves that directory uncovered.
Let the first failure stop the command
Use one script in the package where the tools and both configs live. The Oxlint release notes recommend this ordering.
{
"scripts": {
"lint": "oxlint && eslint ."
}
}Run pnpm lint. A debugger statement fails the first pass. After you remove it, the second pass can report a rule it still owns, such as no-alert if you enable it only in ESLint.
diagram
Which pass runs after Oxlint
&& checks the exit status, so a warning can still let ESLint run. Set rules that should block the second pass to error and try the command with a failing example from each linter. If you need both diagnostic sets for a migration comparison, run each executable on its own first.
Measure the paths developers use
Time the old command and the new one on the same clean checkout. On a clean first pass, you pay for both tools, so time the entire chain. Then check the failure path, where ESLint should never start after an Oxlint error.
Move the next rule after you have checked its options and ignores. Until that match is clear, leave the rule with ESLint so the faster pass still has a narrow job.