From bbe1beae63fe6c6687f2fce928d1034952b43363 Mon Sep 17 00:00:00 2001 From: overlookmotel Date: Fri, 5 Dec 2025 02:18:07 +0000 Subject: [PATCH] docs(oxlint): update JS plugins API support --- src/docs/guide/usage/linter/js-plugins.md | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/docs/guide/usage/linter/js-plugins.md b/src/docs/guide/usage/linter/js-plugins.md index c9f2c17589..131f6b9118 100644 --- a/src/docs/guide/usage/linter/js-plugins.md +++ b/src/docs/guide/usage/linter/js-plugins.md @@ -339,12 +339,7 @@ Rust-JS interop comes into play. ## API support -Oxlint supports most of the APIs typically used in plugins/rules which rely on AST inspection. -That includes most "fix code"-type rules. - -It does not yet support token-based APIs, so stylistic (formatting) rules will not work yet. - -Supported: +Oxlint supports most of ESLint's API surface: - AST traversal. - AST exploration (`node.parent`, `context.sourceCode.getAncestors`). @@ -354,13 +349,13 @@ Supported: - `SourceCode` APIs (e.g. `context.sourceCode.getText(node)`). - `SourceCode` tokens APIs (e.g. `context.sourceCode.getTokens(node)`). - Scope analysis. -- Plugins written in TypeScript (with NodeJS 22.18.0+). Not supported yet: - Language server (IDE) support. - Suggestions. - Control flow analysis. +- Globals. +- Custom file formats (e.g. Svelte, Vue, Angular). -We will be filling in the gaps in API support over the next few months, aiming to eventually support 100% of ESLint's -plugin API surface. +We will be filling in the remaining gaps in API support over the next few months, aiming to eventually support 100% of ESLint's plugin API surface.