Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5712b7f

Browse filesBrowse files
authored
Update README.md (#259)
1 parent 9574d91 commit 5712b7f
Copy full SHA for 5712b7f

File tree

1 file changed

+2
-1
lines changed
Filter options

1 file changed

+2
-1
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ See [implementing-custom-template-tokenizers.md](./docs/implementing-custom-temp
260260
- `defineDocumentVisitor(documentVisitor, options)` ... returns ESLint visitor to traverses the document.
261261
- [ast.md](./docs/ast.md) is `<template>` AST specification.
262262
- [mustache-interpolation-spacing.js](https://github.com/vuejs/eslint-plugin-vue/blob/b434ff99d37f35570fa351681e43ba2cf5746db3/lib/rules/mustache-interpolation-spacing.js) is an example.
263+
- Check your version of ESLint as the location of `defineTemplateBodyVisitor` was moved from `context` to `context.sourceCode` after major version `9.x`
263264

264265
### `defineTemplateBodyVisitor(templateBodyVisitor, scriptVisitor, options)`
265266

@@ -274,7 +275,7 @@ See [implementing-custom-template-tokenizers.md](./docs/implementing-custom-temp
274275
import { AST } from "vue-eslint-parser"
275276

276277
export function create(context) {
277-
return context.parserServices.defineTemplateBodyVisitor(
278+
return context.sourceCode.parserServices.defineTemplateBodyVisitor(
278279
// Event handlers for <template>.
279280
{
280281
VElement(node: AST.VElement): void {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.