File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 6
6
* @returns
7
7
*/
8
8
function defineTemplateBodyVisitor ( context , templateBodyVisitor , scriptVisitor ) {
9
- if ( context . parserServices == null || context . parserServices . defineTemplateBodyVisitor == null ) {
9
+ if (
10
+ context . sourceCode . parserServices == null ||
11
+ context . sourceCode . parserServices . defineTemplateBodyVisitor == null
12
+ ) {
10
13
// Default parser
11
14
return scriptVisitor ;
12
15
}
13
16
14
17
// Using "vue-eslint-parser" requires this setup
15
18
// @see https://eslint.org/docs/developer-guide/working-with-rules#the-context-object
16
- return context . parserServices . defineTemplateBodyVisitor ( templateBodyVisitor , scriptVisitor ) ;
19
+ return context . sourceCode . parserServices . defineTemplateBodyVisitor ( templateBodyVisitor , scriptVisitor ) ;
17
20
}
18
21
19
22
module . exports = {
You can’t perform that action at this time.
0 commit comments