oxlint-plugin-eslint
v1.56.0
Published
ESLint's built-in rules as an Oxlint plugin
Readme
oxlint-plugin-eslint
ESLint's built-in rules as an Oxlint plugin.
This package exports all of ESLint's built-in rules as a JS plugin that Oxlint users can use.
Allows using ESLint rules that Oxlint doesn't implement natively yet.
More details in Oxlint docs.
Usage
Install the package:
npm install --save-dev oxlint-plugin-eslintAdd to your Oxlint config:
{
"jsPlugins": ["oxlint-plugin-eslint"],
"rules": {
"eslint-js/no-restricted-syntax": [
"error",
{
"selector": "ThrowStatement > CallExpression[callee.name=/Error$/]",
"message": "Use `new` keyword when throwing an `Error`."
}
]
}
}All rules are prefixed with eslint-js/, to distinguish from Oxlint's Rust implementation of ESLint rules.
