We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 643fe21 commit 138b36bCopy full SHA for 138b36b
src/utils/defineTemplateBodyVisitor.ts
@@ -39,9 +39,9 @@ function defineTemplateBodyVisitor(
39
*/
40
function getParserServices(context: Rule.RuleContext) {
41
// @ts-expect-error TODO: remove this when eslint v8 support is dropped
42
- return context.sourceCode
43
- ? context.sourceCode.parserServices
44
- : context.parserServices;
+ const legacy = context.sourceCode;
+
+ return legacy ? legacy.parserServices : context.parserServices;
45
}
46
47
export default defineTemplateBodyVisitor;
0 commit comments