Skip to content

Commit 47f3163

Browse files
docs(linter): update implemented APIs for JS plugins (#674)
Tokens APIs and support for rule options were both added in 1.31.0. Update the docs to reflect that.
1 parent d33643a commit 47f3163

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/docs/guide/usage/linter/js-plugins.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,17 +349,17 @@ Supported:
349349
- AST traversal.
350350
- AST exploration (`node.parent`, `context.sourceCode.getAncestors`).
351351
- Fixes.
352+
- Rule options.
352353
- Selectors ([ESLint docs](https://eslint.org/docs/latest/extend/selectors)).
353354
- `SourceCode` APIs (e.g. `context.sourceCode.getText(node)`).
355+
- `SourceCode` tokens APIs (e.g. `context.sourceCode.getTokens(node)`).
354356
- Scope analysis.
355357
- Plugins written in TypeScript (with NodeJS 22.18.0+).
356358

357359
Not supported yet:
358360

359361
- Language server (IDE) support.
360-
- Rule options.
361362
- Suggestions.
362-
- `SourceCode` APIs related to tokens (e.g. `context.sourceCode.getTokens(node)`).
363363
- Control flow analysis.
364364

365365
We will be filling in the gaps in API support over the next few months, aiming to eventually support 100% of ESLint's

0 commit comments

Comments
 (0)