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 66 * @returns
77 */
88function 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+ ) {
1013 // Default parser
1114 return scriptVisitor ;
1215 }
1316
1417 // Using "vue-eslint-parser" requires this setup
1518 // @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 ) ;
1720}
1821
1922module . exports = {
You can’t perform that action at this time.
0 commit comments