Built-in Plugins
Oxlint includes built-in implementations of many popular ESLint plugin rule sets. Most rules in the recommended configs are already implemented, so you can get useful results without extra setup.
Oxlint also supports plugins written in JavaScript with an ESLint-compatible API. See JS Plugins.
What a plugin means in Oxlint
A plugin is a named group of rules. Enabling a plugin makes its rules available, and category flags control which rules are enabled and at what severity.
If you are migrating from ESLint, plugins map to the ecosystems you already know, such as import, react, jsx-a11y, jest, unicorn, and more.
Enable a plugin
It is strongly recommended to use a config file to enable plugins, as it makes it considerably easier to manage and share with other developers on a project.
Enable in a config file
You can also enable plugins in your config file using the plugins field:
{
"plugins": ["import"]
}
``````ts [oxlint.config.ts]
import { defineConfig } from "oxlint";
export default defineConfig({
plugins: ["import"],
});
``````bash
oxlint --import-plugin
``````bash
oxlint --import-plugin -D correctness -W suspicious
``````json [.oxlintrc.json]
{
"plugins": []
}
``````ts [oxlint.config.ts]
import { defineConfig } from "oxlint";
export default defineConfig({
plugins: [],
});
``````bash
oxlint --disable-unicorn-plugin