diff --git a/docs/modules/eslint-plugin-import.md b/docs/modules/eslint-plugin-import.md index 7f2859a..5c8a1f8 100644 --- a/docs/modules/eslint-plugin-import.md +++ b/docs/modules/eslint-plugin-import.md @@ -62,3 +62,12 @@ module.exports = { } } ``` + +## Oxlint + +[Oxlint](https://oxc.rs/docs/guide/usage/linter.html) is a high-performance linter for JavaScript and TypeScript, built on the Rust-based `Oxc` compiler stack. It's intended to be fully backwards-compatible with ESLint, having ported most of the ESLint rules, as well as those from popular plugins including `eslint-plugin-import`. + +The migration process from ESLint is covered in [the Oxlint documentation](https://oxc.rs/docs/guide/usage/linter/migrate-from-eslint.html), and can be done automatically from an ESLint flat config using [`npx @oxlint/migrate`](https://github.com/oxc-project/oxlint-migrate). + +> [!NOTE] +> Oxlint is not necessarily a full drop-in replacement, as not all of the `eslint-plugin-import` rules have been, or will be, implemented. Check [the GitHub issue](https://github.com/oxc-project/oxc/issues/1117) to view the progress. diff --git a/docs/modules/eslint-plugin-react.md b/docs/modules/eslint-plugin-react.md index 2464a3a..9913438 100644 --- a/docs/modules/eslint-plugin-react.md +++ b/docs/modules/eslint-plugin-react.md @@ -34,3 +34,12 @@ export default [ > [!NOTE] > `@eslint-react/eslint-plugin` is not a drop‑in replacement. Use [their migration guide](https://www.eslint-react.xyz/docs/migrating-from-eslint-plugin-react) to map rules/options and automate changes where possible. + +## Oxlint + +[Oxlint](https://oxc.rs/docs/guide/usage/linter.html) is a high-performance linter for JavaScript and TypeScript, built on the Rust-based `Oxc` compiler stack. It's intended to be fully backwards-compatible with ESLint, having ported most of the ESLint rules, as well as those from popular plugins including `eslint-plugin-react`. + +The migration process from ESLint is covered in [the Oxlint documentation](https://oxc.rs/docs/guide/usage/linter/migrate-from-eslint.html), and can be done automatically from an ESLint flat config using [`npx @oxlint/migrate`](https://github.com/oxc-project/oxlint-migrate). + +> [!NOTE] +> Oxlint is not necessarily a full drop-in replacement, as not all of the `eslint-plugin-react` rules have been, or will be, implemented. Check [the GitHub issue](https://github.com/oxc-project/oxc/issues/1022) to view the progress. diff --git a/manifests/preferred.json b/manifests/preferred.json index a7e4fe3..31eddaf 100644 --- a/manifests/preferred.json +++ b/manifests/preferred.json @@ -267,7 +267,7 @@ "eslint-plugin-import": { "type": "module", "moduleName": "eslint-plugin-import", - "replacements": ["eslint-plugin-import-x"], + "replacements": ["eslint-plugin-import-x", "oxlint"], "url": {"type": "e18e", "id": "eslint-plugin-import"} }, "eslint-plugin-node": { @@ -279,7 +279,7 @@ "eslint-plugin-react": { "type": "module", "moduleName": "eslint-plugin-react", - "replacements": ["@eslint-react/eslint-plugin"], + "replacements": ["@eslint-react/eslint-plugin", "oxlint"], "url": {"type": "e18e", "id": "eslint-plugin-react"} }, "eslint-plugin-vitest": { @@ -3323,6 +3323,11 @@ "type": "documented", "replacementModule": "oxc-resolver" }, + "oxlint": { + "id": "oxlint", + "type": "documented", + "replacementModule": "oxlint" + }, "package-manager-detector": { "id": "package-manager-detector", "type": "documented",