@@ -179,7 +179,11 @@ ruleTester.run('no-template-shadow', rule, {
179179 code : '<template><div v-for="i in 5"><div v-for="i in 5"></div></div></template>' ,
180180 errors : [
181181 {
182- message : "Variable 'i' is already declared in the upper scope."
182+ message : "Variable 'i' is already declared in the upper scope." ,
183+ line : 1 ,
184+ column : 43 ,
185+ endLine : 1 ,
186+ endColumn : 44
183187 }
184188 ]
185189 } ,
@@ -198,7 +202,10 @@ ruleTester.run('no-template-shadow', rule, {
198202 errors : [
199203 {
200204 message : "Variable 'i' is already declared in the upper scope." ,
201- line : 2
205+ line : 2 ,
206+ column : 21 ,
207+ endLine : 2 ,
208+ endColumn : 22
202209 }
203210 ]
204211 } ,
@@ -218,11 +225,17 @@ ruleTester.run('no-template-shadow', rule, {
218225 errors : [
219226 {
220227 message : "Variable 'i' is already declared in the upper scope." ,
221- line : 2
228+ line : 2 ,
229+ column : 21 ,
230+ endLine : 2 ,
231+ endColumn : 22
222232 } ,
223233 {
224234 message : "Variable 'i' is already declared in the upper scope." ,
225- line : 3
235+ line : 3 ,
236+ column : 21 ,
237+ endLine : 3 ,
238+ endColumn : 22
226239 }
227240 ]
228241 } ,
@@ -243,11 +256,17 @@ ruleTester.run('no-template-shadow', rule, {
243256 errors : [
244257 {
245258 message : "Variable 'i' is already declared in the upper scope." ,
246- line : 2
259+ line : 2 ,
260+ column : 21 ,
261+ endLine : 2 ,
262+ endColumn : 22
247263 } ,
248264 {
249265 message : "Variable 'i' is already declared in the upper scope." ,
250- line : 3
266+ line : 3 ,
267+ column : 23 ,
268+ endLine : 3 ,
269+ endColumn : 24
251270 }
252271 ]
253272 } ,
@@ -268,7 +287,10 @@ ruleTester.run('no-template-shadow', rule, {
268287 errors : [
269288 {
270289 message : "Variable 'i' is already declared in the upper scope." ,
271- line : 2
290+ line : 2 ,
291+ column : 21 ,
292+ endLine : 2 ,
293+ endColumn : 22
272294 }
273295 ]
274296 } ,
@@ -291,11 +313,17 @@ ruleTester.run('no-template-shadow', rule, {
291313 errors : [
292314 {
293315 message : "Variable 'i' is already declared in the upper scope." ,
294- line : 2
316+ line : 2 ,
317+ column : 21 ,
318+ endLine : 2 ,
319+ endColumn : 22
295320 } ,
296321 {
297322 message : "Variable 'f' is already declared in the upper scope." ,
298- line : 3
323+ line : 3 ,
324+ column : 21 ,
325+ endLine : 3 ,
326+ endColumn : 22
299327 }
300328 ]
301329 } ,
@@ -328,11 +356,17 @@ ruleTester.run('no-template-shadow', rule, {
328356 errors : [
329357 {
330358 message : "Variable 'e' is already declared in the upper scope." ,
331- line : 6
359+ line : 6 ,
360+ column : 21 ,
361+ endLine : 6 ,
362+ endColumn : 22
332363 } ,
333364 {
334365 message : "Variable 'f' is already declared in the upper scope." ,
335- line : 7
366+ line : 7 ,
367+ column : 21 ,
368+ endLine : 7 ,
369+ endColumn : 22
336370 }
337371 ]
338372 } ,
@@ -365,11 +399,17 @@ ruleTester.run('no-template-shadow', rule, {
365399 errors : [
366400 {
367401 message : "Variable 'e' is already declared in the upper scope." ,
368- line : 6
402+ line : 6 ,
403+ column : 21 ,
404+ endLine : 6 ,
405+ endColumn : 22
369406 } ,
370407 {
371408 message : "Variable 'f' is already declared in the upper scope." ,
372- line : 7
409+ line : 7 ,
410+ column : 21 ,
411+ endLine : 7 ,
412+ endColumn : 22
373413 }
374414 ]
375415 } ,
@@ -400,11 +440,17 @@ ruleTester.run('no-template-shadow', rule, {
400440 errors : [
401441 {
402442 message : "Variable 'e' is already declared in the upper scope." ,
403- line : 6
443+ line : 6 ,
444+ column : 21 ,
445+ endLine : 6 ,
446+ endColumn : 22
404447 } ,
405448 {
406449 message : "Variable 'f' is already declared in the upper scope." ,
407- line : 7
450+ line : 7 ,
451+ column : 21 ,
452+ endLine : 7 ,
453+ endColumn : 22
408454 }
409455 ]
410456 } ,
@@ -430,7 +476,10 @@ ruleTester.run('no-template-shadow', rule, {
430476 errors : [
431477 {
432478 message : "Variable 'j' is already declared in the upper scope." ,
433- line : 4
479+ line : 4 ,
480+ column : 23 ,
481+ endLine : 4 ,
482+ endColumn : 24
434483 }
435484 ]
436485 } ,
@@ -450,7 +499,10 @@ ruleTester.run('no-template-shadow', rule, {
450499 errors : [
451500 {
452501 message : "Variable 'j' is already declared in the upper scope." ,
453- line : 4
502+ line : 4 ,
503+ column : 23 ,
504+ endLine : 4 ,
505+ endColumn : 24
454506 }
455507 ]
456508 } ,
@@ -470,7 +522,10 @@ ruleTester.run('no-template-shadow', rule, {
470522 errors : [
471523 {
472524 message : "Variable 'j' is already declared in the upper scope." ,
473- line : 4
525+ line : 4 ,
526+ column : 23 ,
527+ endLine : 4 ,
528+ endColumn : 24
474529 }
475530 ]
476531 }
0 commit comments