@@ -44,7 +44,9 @@ tester.run('block-lang', rule, {
4444 {
4545 message : `Only "ts" can be used for the 'lang' attribute of '<script>'.` ,
4646 line : 2 ,
47- column : 15
47+ column : 15 ,
48+ endLine : 2 ,
49+ endColumn : 24
4850 }
4951 ]
5052 } ,
@@ -56,7 +58,9 @@ tester.run('block-lang', rule, {
5658 {
5759 message : `Only "ts" can be used for the 'lang' attribute of '<script>'.` ,
5860 line : 2 ,
59- column : 15
61+ column : 15 ,
62+ endLine : 2 ,
63+ endColumn : 24
6064 }
6165 ]
6266 } ,
@@ -68,7 +72,9 @@ tester.run('block-lang', rule, {
6872 {
6973 message : "The 'lang' attribute of '<script>' is missing." ,
7074 line : 2 ,
71- column : 7
75+ column : 7 ,
76+ endLine : 2 ,
77+ endColumn : 15
7278 }
7379 ]
7480 } ,
@@ -80,7 +86,9 @@ tester.run('block-lang', rule, {
8086 {
8187 message : `Only "ts" can be used for the 'lang' attribute of '<script>'.` ,
8288 line : 2 ,
83- column : 15
89+ column : 15 ,
90+ endLine : 2 ,
91+ endColumn : 22
8492 }
8593 ]
8694 } ,
@@ -91,7 +99,9 @@ tester.run('block-lang', rule, {
9199 {
92100 message : "Do not specify the 'lang' attribute of '<script>'." ,
93101 line : 1 ,
94- column : 30
102+ column : 30 ,
103+ endLine : 1 ,
104+ endColumn : 39
95105 }
96106 ]
97107 } ,
@@ -103,7 +113,9 @@ tester.run('block-lang', rule, {
103113 message :
104114 "Do not explicitly specify the default language for the 'lang' attribute of '<script>'." ,
105115 line : 1 ,
106- column : 30
116+ column : 30 ,
117+ endLine : 1 ,
118+ endColumn : 39
107119 }
108120 ]
109121 } ,
@@ -114,7 +126,9 @@ tester.run('block-lang', rule, {
114126 {
115127 message : "Do not specify the 'lang' attribute of '<script>'." ,
116128 line : 1 ,
117- column : 30
129+ column : 30 ,
130+ endLine : 1 ,
131+ endColumn : 39
118132 }
119133 ]
120134 } ,
@@ -126,7 +140,9 @@ tester.run('block-lang', rule, {
126140 {
127141 message : "The 'lang' attribute of '<i18n>' is missing." ,
128142 line : 1 ,
129- column : 1
143+ column : 1 ,
144+ endLine : 1 ,
145+ endColumn : 7
130146 }
131147 ]
132148 } ,
@@ -139,7 +155,9 @@ tester.run('block-lang', rule, {
139155 message :
140156 "Only \"json\" can be used for the 'lang' attribute of '<i18n>'. Or, not specifying the `lang` attribute is allowed." ,
141157 line : 2 ,
142- column : 13
158+ column : 13 ,
159+ endLine : 2 ,
160+ endColumn : 24
143161 }
144162 ]
145163 } ,
@@ -152,7 +170,9 @@ tester.run('block-lang', rule, {
152170 message :
153171 'Only "json", and "yaml" can be used for the \'lang\' attribute of \'<i18n>\'. Or, not specifying the `lang` attribute is allowed.' ,
154172 line : 2 ,
155- column : 13
173+ column : 13 ,
174+ endLine : 2 ,
175+ endColumn : 24
156176 }
157177 ]
158178 } ,
@@ -165,17 +185,23 @@ tester.run('block-lang', rule, {
165185 {
166186 message : "Do not specify the 'lang' attribute of '<template>'." ,
167187 line : 1 ,
168- column : 11
188+ column : 11 ,
189+ endLine : 1 ,
190+ endColumn : 21
169191 } ,
170192 {
171193 message : "Do not specify the 'lang' attribute of '<script>'." ,
172194 line : 2 ,
173- column : 15
195+ column : 15 ,
196+ endLine : 2 ,
197+ endColumn : 24
174198 } ,
175199 {
176200 message : "Do not specify the 'lang' attribute of '<style>'." ,
177201 line : 3 ,
178- column : 14
202+ column : 14 ,
203+ endLine : 3 ,
204+ endColumn : 27
179205 }
180206 ]
181207 }
0 commit comments