@@ -131,7 +131,15 @@ ruleTester.run('no-arrow-functions-in-watch', rule, {
131
131
foo: () => {}
132
132
},
133
133
}` ,
134
- errors : [ 'You should not use an arrow function to define a watcher.' ]
134
+ errors : [
135
+ {
136
+ message : 'You should not use an arrow function to define a watcher.' ,
137
+ line : 4 ,
138
+ column : 16 ,
139
+ endLine : 4 ,
140
+ endColumn : 24
141
+ }
142
+ ]
135
143
} ,
136
144
{
137
145
filename : 'test.vue' ,
@@ -145,7 +153,10 @@ ruleTester.run('no-arrow-functions-in-watch', rule, {
145
153
errors : [
146
154
{
147
155
message : 'You should not use an arrow function to define a watcher.' ,
148
- line : 5
156
+ line : 5 ,
157
+ column : 16 ,
158
+ endLine : 5 ,
159
+ endColumn : 24
149
160
}
150
161
]
151
162
} ,
@@ -161,7 +172,10 @@ ruleTester.run('no-arrow-functions-in-watch', rule, {
161
172
errors : [
162
173
{
163
174
message : 'You should not use an arrow function to define a watcher.' ,
164
- line : 5
175
+ line : 5 ,
176
+ column : 16 ,
177
+ endLine : 5 ,
178
+ endColumn : 24
165
179
}
166
180
]
167
181
} ,
@@ -207,7 +221,10 @@ ruleTester.run('no-arrow-functions-in-watch', rule, {
207
221
errors : [
208
222
{
209
223
message : 'You should not use an arrow function to define a watcher.' ,
210
- line : 15
224
+ line : 15 ,
225
+ column : 14 ,
226
+ endLine : 17 ,
227
+ endColumn : 12
211
228
}
212
229
]
213
230
} ,
@@ -227,7 +244,10 @@ ruleTester.run('no-arrow-functions-in-watch', rule, {
227
244
errors : [
228
245
{
229
246
message : 'You should not use an arrow function to define a watcher.' ,
230
- line : 8
247
+ line : 8 ,
248
+ column : 22 ,
249
+ endLine : 8 ,
250
+ endColumn : 30
231
251
}
232
252
]
233
253
} ,
@@ -248,11 +268,17 @@ ruleTester.run('no-arrow-functions-in-watch', rule, {
248
268
errors : [
249
269
{
250
270
message : 'You should not use an arrow function to define a watcher.' ,
251
- line : 6
271
+ line : 6 ,
272
+ column : 13 ,
273
+ endLine : 6 ,
274
+ endColumn : 43
252
275
} ,
253
276
{
254
277
message : 'You should not use an arrow function to define a watcher.' ,
255
- line : 8
278
+ line : 8 ,
279
+ column : 24 ,
280
+ endLine : 8 ,
281
+ endColumn : 54
256
282
}
257
283
]
258
284
}
0 commit comments