Turn off all rules already supported by oxlint
. The rules extracted from here
You can see https://oxc-project.github.io/blog/2023-12-12-announcing-oxlint.html
pnpm add eslint-plugin-oxlint --D
This is a flat config usage.
// eslint.config.js
import oxlint from "eslint-plugin-oxlint"
export default [
... // other plugins
oxlint, // oxlint should be the last one
]
And then you can add the following script to your package.json
:
{
"scripts": {
"lint": "npx oxlint && npx eslint"
}
}