Skip to content

Commit 5712b7f

Browse files
authored
Update README.md (#259)
1 parent 9574d91 commit 5712b7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy