You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add defineDocumentVisitor to parserServices (#119)
* Add defineDocumentVisitor to parserServices
* fix
* fix
* Changed getTemplateBodyTokenStore to work even if `<template>` is missing
* Add testcase
* fix
Copy file name to clipboardExpand all lines: README.md
+1
Original file line number
Diff line number
Diff line change
@@ -203,6 +203,7 @@ See also to [here](https://github.com/vuejs/rfcs/blob/master/active-rfcs/0043-sf
203
203
-`getTemplateBodyTokenStore()` ... returns ESLint `TokenStore` to get the tokens of `<template>`.
204
204
-`getDocumentFragment()` ... returns the root `VDocumentFragment`.
205
205
-`defineCustomBlocksVisitor(context, customParser, rule, scriptVisitor)` ... returns ESLint visitor that parses and traverses the contents of the custom block.
206
+
-`defineDocumentVisitor(documentVisitor, options)` ... returns ESLint visitor to traverses the document.
206
207
-[ast.md](./docs/ast.md) is `<template>` AST specification.
207
208
-[mustache-interpolation-spacing.js](https://github.com/vuejs/eslint-plugin-vue/blob/b434ff99d37f35570fa351681e43ba2cf5746db3/lib/rules/mustache-interpolation-spacing.js) is an example.
0 commit comments