diff --git a/lib/util/parser.js b/lib/util/parser.js index 7b55b2cc..457fca22 100644 --- a/lib/util/parser.js +++ b/lib/util/parser.js @@ -6,14 +6,17 @@ * @returns */ function defineTemplateBodyVisitor(context, templateBodyVisitor, scriptVisitor) { - if (context.parserServices == null || context.parserServices.defineTemplateBodyVisitor == null) { + if ( + context.sourceCode.parserServices == null || + context.sourceCode.parserServices.defineTemplateBodyVisitor == null + ) { // Default parser return scriptVisitor; } // Using "vue-eslint-parser" requires this setup // @see https://eslint.org/docs/developer-guide/working-with-rules#the-context-object - return context.parserServices.defineTemplateBodyVisitor(templateBodyVisitor, scriptVisitor); + return context.sourceCode.parserServices.defineTemplateBodyVisitor(templateBodyVisitor, scriptVisitor); } module.exports = { diff --git a/package-lock.json b/package-lock.json index c0fd66df..9d65e94d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "eslint-plugin-tailwindcss", - "version": "3.15.2", + "version": "3.15.3-beta.9", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "eslint-plugin-tailwindcss", - "version": "3.15.2", + "version": "3.15.3-beta.9", "license": "MIT", "dependencies": { "fast-glob": "^3.2.5", diff --git a/package.json b/package.json index f12c889f..29a77371 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-tailwindcss", - "version": "3.15.2", + "version": "3.15.3-beta.9", "description": "Rules enforcing best practices while using Tailwind CSS", "keywords": [ "eslint",