@@ -44,7 +44,9 @@ tester.run('block-lang', rule, {
44
44
{
45
45
message : `Only "ts" can be used for the 'lang' attribute of '<script>'.` ,
46
46
line : 2 ,
47
- column : 15
47
+ column : 15 ,
48
+ endLine : 2 ,
49
+ endColumn : 24
48
50
}
49
51
]
50
52
} ,
@@ -56,7 +58,9 @@ tester.run('block-lang', rule, {
56
58
{
57
59
message : `Only "ts" can be used for the 'lang' attribute of '<script>'.` ,
58
60
line : 2 ,
59
- column : 15
61
+ column : 15 ,
62
+ endLine : 2 ,
63
+ endColumn : 24
60
64
}
61
65
]
62
66
} ,
@@ -68,7 +72,9 @@ tester.run('block-lang', rule, {
68
72
{
69
73
message : "The 'lang' attribute of '<script>' is missing." ,
70
74
line : 2 ,
71
- column : 7
75
+ column : 7 ,
76
+ endLine : 2 ,
77
+ endColumn : 15
72
78
}
73
79
]
74
80
} ,
@@ -80,7 +86,9 @@ tester.run('block-lang', rule, {
80
86
{
81
87
message : `Only "ts" can be used for the 'lang' attribute of '<script>'.` ,
82
88
line : 2 ,
83
- column : 15
89
+ column : 15 ,
90
+ endLine : 2 ,
91
+ endColumn : 22
84
92
}
85
93
]
86
94
} ,
@@ -91,7 +99,9 @@ tester.run('block-lang', rule, {
91
99
{
92
100
message : "Do not specify the 'lang' attribute of '<script>'." ,
93
101
line : 1 ,
94
- column : 30
102
+ column : 30 ,
103
+ endLine : 1 ,
104
+ endColumn : 39
95
105
}
96
106
]
97
107
} ,
@@ -103,7 +113,9 @@ tester.run('block-lang', rule, {
103
113
message :
104
114
"Do not explicitly specify the default language for the 'lang' attribute of '<script>'." ,
105
115
line : 1 ,
106
- column : 30
116
+ column : 30 ,
117
+ endLine : 1 ,
118
+ endColumn : 39
107
119
}
108
120
]
109
121
} ,
@@ -114,7 +126,9 @@ tester.run('block-lang', rule, {
114
126
{
115
127
message : "Do not specify the 'lang' attribute of '<script>'." ,
116
128
line : 1 ,
117
- column : 30
129
+ column : 30 ,
130
+ endLine : 1 ,
131
+ endColumn : 39
118
132
}
119
133
]
120
134
} ,
@@ -126,7 +140,9 @@ tester.run('block-lang', rule, {
126
140
{
127
141
message : "The 'lang' attribute of '<i18n>' is missing." ,
128
142
line : 1 ,
129
- column : 1
143
+ column : 1 ,
144
+ endLine : 1 ,
145
+ endColumn : 7
130
146
}
131
147
]
132
148
} ,
@@ -139,7 +155,9 @@ tester.run('block-lang', rule, {
139
155
message :
140
156
"Only \"json\" can be used for the 'lang' attribute of '<i18n>'. Or, not specifying the `lang` attribute is allowed." ,
141
157
line : 2 ,
142
- column : 13
158
+ column : 13 ,
159
+ endLine : 2 ,
160
+ endColumn : 24
143
161
}
144
162
]
145
163
} ,
@@ -152,7 +170,9 @@ tester.run('block-lang', rule, {
152
170
message :
153
171
'Only "json", and "yaml" can be used for the \'lang\' attribute of \'<i18n>\'. Or, not specifying the `lang` attribute is allowed.' ,
154
172
line : 2 ,
155
- column : 13
173
+ column : 13 ,
174
+ endLine : 2 ,
175
+ endColumn : 24
156
176
}
157
177
]
158
178
} ,
@@ -165,17 +185,23 @@ tester.run('block-lang', rule, {
165
185
{
166
186
message : "Do not specify the 'lang' attribute of '<template>'." ,
167
187
line : 1 ,
168
- column : 11
188
+ column : 11 ,
189
+ endLine : 1 ,
190
+ endColumn : 21
169
191
} ,
170
192
{
171
193
message : "Do not specify the 'lang' attribute of '<script>'." ,
172
194
line : 2 ,
173
- column : 15
195
+ column : 15 ,
196
+ endLine : 2 ,
197
+ endColumn : 24
174
198
} ,
175
199
{
176
200
message : "Do not specify the 'lang' attribute of '<style>'." ,
177
201
line : 3 ,
178
- column : 14
202
+ column : 14 ,
203
+ endLine : 3 ,
204
+ endColumn : 27
179
205
}
180
206
]
181
207
}
0 commit comments