@@ -35,7 +35,7 @@ module.exports = {
35
35
loc : { line : 1 , column : 0 } ,
36
36
message : 'Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error'
37
37
} )
38
- return
38
+ return { }
39
39
}
40
40
return context . parserServices . defineTemplateBodyVisitor ( templateBodyVisitor , scriptVisitor )
41
41
} ,
@@ -85,13 +85,13 @@ module.exports = {
85
85
hasAttribute ( node , name , value ) {
86
86
assert ( node && node . type === 'VElement' )
87
87
return node . startTag . attributes . some ( a =>
88
- ! a . directive &&
89
- a . key . name === name &&
90
- (
91
- value === undefined ||
92
- ( a . value != null && a . value . value === value )
93
- )
94
- )
88
+ ! a . directive &&
89
+ a . key . name === name &&
90
+ (
91
+ value === undefined ||
92
+ ( a . value != null && a . value . value === value )
93
+ )
94
+ )
95
95
} ,
96
96
97
97
/**
@@ -104,10 +104,10 @@ module.exports = {
104
104
hasDirective ( node , name , argument ) {
105
105
assert ( node && node . type === 'VElement' )
106
106
return node . startTag . attributes . some ( a =>
107
- a . directive &&
108
- a . key . name === name &&
109
- ( argument === undefined || a . key . argument === argument )
110
- )
107
+ a . directive &&
108
+ a . key . name === name &&
109
+ ( argument === undefined || a . key . argument === argument )
110
+ )
111
111
} ,
112
112
113
113
/**
@@ -118,8 +118,8 @@ module.exports = {
118
118
hasAttributeValue ( node ) {
119
119
assert ( node && node . type === 'VAttribute' )
120
120
return (
121
- node . value != null &&
122
- ( node . value . expression != null || node . value . syntaxError != null )
121
+ node . value != null &&
122
+ ( node . value . expression != null || node . value . syntaxError != null )
123
123
)
124
124
} ,
125
125
@@ -133,13 +133,13 @@ module.exports = {
133
133
getAttribute ( node , name , value ) {
134
134
assert ( node && node . type === 'VElement' )
135
135
return node . startTag . attributes . find ( a =>
136
- ! a . directive &&
137
- a . key . name === name &&
138
- (
139
- value === undefined ||
140
- ( a . value != null && a . value . value === value )
141
- )
142
- )
136
+ ! a . directive &&
137
+ a . key . name === name &&
138
+ (
139
+ value === undefined ||
140
+ ( a . value != null && a . value . value === value )
141
+ )
142
+ )
143
143
} ,
144
144
145
145
/**
@@ -152,10 +152,10 @@ module.exports = {
152
152
getDirective ( node , name , argument ) {
153
153
assert ( node && node . type === 'VElement' )
154
154
return node . startTag . attributes . find ( a =>
155
- a . directive &&
156
- a . key . name === name &&
157
- ( argument === undefined || a . key . argument === argument )
158
- )
155
+ a . directive &&
156
+ a . key . name === name &&
157
+ ( argument === undefined || a . key . argument === argument )
158
+ )
159
159
} ,
160
160
161
161
/**
@@ -168,11 +168,11 @@ module.exports = {
168
168
169
169
const prev = this . prevSibling ( node )
170
170
return (
171
- prev != null &&
172
- prev . startTag . attributes . some ( a =>
173
- a . directive &&
174
- ( a . key . name === 'if' || a . key . name === 'else-if' )
175
- )
171
+ prev != null &&
172
+ prev . startTag . attributes . some ( a =>
173
+ a . directive &&
174
+ ( a . key . name === 'if' || a . key . name === 'else-if' )
175
+ )
176
176
)
177
177
} ,
178
178
0 commit comments