Skip to content

Commit 615bf8a

Browse files
feat(unstable): type lint plugin visitor (#28005)
This PR strongly types the JS plugin visitor. ```ts export default { name: "foo", rules: { bar: { create(ctx) { return { // Plain ast node visitor Identifier(node) {}, // Exit visitor "Identifier:exit"(node) {}, // Custom selectors, `node` needs to be typed manually "FunctionDeclaration > Identifier"(node: Deno.lint.Identifier) {} } } } } } ``` Follow up to #27977
1 parent 703fdd8 commit 615bf8a

File tree

1 file changed

+237
-170
lines changed

1 file changed

+237
-170
lines changed

0 commit comments

Comments
 (0)