File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
2
* @author kazuya kawaguchi (a.k.a. kazupon)
3
3
*/
4
- import { defineTemplateBodyVisitor , isStaticLiteral } from '../utils/index'
4
+ import {
5
+ compositingVisitors ,
6
+ defineTemplateBodyVisitor ,
7
+ isStaticLiteral
8
+ } from '../utils/index'
5
9
import type { RuleContext , RuleListener } from '../types'
6
10
import type { AST as VAST } from 'vue-eslint-parser'
7
11
import { createRule } from '../utils/rule'
@@ -93,9 +97,8 @@ function checkCallExpression(
93
97
}
94
98
95
99
function create ( context : RuleContext ) : RuleListener {
96
- return defineTemplateBodyVisitor (
97
- context ,
98
- {
100
+ return compositingVisitors (
101
+ defineTemplateBodyVisitor ( context , {
99
102
"VAttribute[directive=true][key.name='t']" ( node : VAST . VDirective ) {
100
103
checkDirective ( context , node )
101
104
} ,
@@ -113,7 +116,7 @@ function create(context: RuleContext): RuleListener {
113
116
CallExpression ( node : VAST . ESLintCallExpression ) {
114
117
checkCallExpression ( context , node )
115
118
}
116
- } ,
119
+ } ) ,
117
120
{
118
121
CallExpression ( node : VAST . ESLintCallExpression ) {
119
122
checkCallExpression ( context , node )
You can’t perform that action at this time.
0 commit comments