Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information