@@ -30,7 +30,11 @@ tester.run('no-empty-component-block', rule, {
30
30
output : '' ,
31
31
errors : [
32
32
{
33
- message : '`<template>` is empty. Empty block is not allowed.'
33
+ message : '`<template>` is empty. Empty block is not allowed.' ,
34
+ line : 1 ,
35
+ column : 1 ,
36
+ endLine : 1 ,
37
+ endColumn : 22
34
38
}
35
39
]
36
40
} ,
@@ -39,7 +43,11 @@ tester.run('no-empty-component-block', rule, {
39
43
output : '' ,
40
44
errors : [
41
45
{
42
- message : '`<template>` is empty. Empty block is not allowed.'
46
+ message : '`<template>` is empty. Empty block is not allowed.' ,
47
+ line : 1 ,
48
+ column : 1 ,
49
+ endLine : 1 ,
50
+ endColumn : 23
43
51
}
44
52
]
45
53
} ,
@@ -49,7 +57,11 @@ tester.run('no-empty-component-block', rule, {
49
57
output : '' ,
50
58
errors : [
51
59
{
52
- message : '`<template>` is empty. Empty block is not allowed.'
60
+ message : '`<template>` is empty. Empty block is not allowed.' ,
61
+ line : 1 ,
62
+ column : 1 ,
63
+ endLine : 2 ,
64
+ endColumn : 12
53
65
}
54
66
]
55
67
} ,
@@ -58,7 +70,11 @@ tester.run('no-empty-component-block', rule, {
58
70
output : '' ,
59
71
errors : [
60
72
{
61
- message : '`<template>` is empty. Empty block is not allowed.'
73
+ message : '`<template>` is empty. Empty block is not allowed.' ,
74
+ line : 1 ,
75
+ column : 1 ,
76
+ endLine : 1 ,
77
+ endColumn : 13
62
78
}
63
79
]
64
80
} ,
@@ -67,7 +83,11 @@ tester.run('no-empty-component-block', rule, {
67
83
output : '' ,
68
84
errors : [
69
85
{
70
- message : '`<template>` is empty. Empty block is not allowed.'
86
+ message : '`<template>` is empty. Empty block is not allowed.' ,
87
+ line : 1 ,
88
+ column : 1 ,
89
+ endLine : 1 ,
90
+ endColumn : 20
71
91
}
72
92
]
73
93
} ,
@@ -76,10 +96,18 @@ tester.run('no-empty-component-block', rule, {
76
96
output : '<script></script>' ,
77
97
errors : [
78
98
{
79
- message : '`<template>` is empty. Empty block is not allowed.'
99
+ message : '`<template>` is empty. Empty block is not allowed.' ,
100
+ line : 1 ,
101
+ column : 1 ,
102
+ endLine : 1 ,
103
+ endColumn : 22
80
104
} ,
81
105
{
82
- message : '`<script>` is empty. Empty block is not allowed.'
106
+ message : '`<script>` is empty. Empty block is not allowed.' ,
107
+ line : 1 ,
108
+ column : 22 ,
109
+ endLine : 1 ,
110
+ endColumn : 39
83
111
}
84
112
]
85
113
} ,
@@ -88,10 +116,18 @@ tester.run('no-empty-component-block', rule, {
88
116
output : '<script />' ,
89
117
errors : [
90
118
{
91
- message : '`<template>` is empty. Empty block is not allowed.'
119
+ message : '`<template>` is empty. Empty block is not allowed.' ,
120
+ line : 1 ,
121
+ column : 1 ,
122
+ endLine : 1 ,
123
+ endColumn : 13
92
124
} ,
93
125
{
94
- message : '`<script>` is empty. Empty block is not allowed.'
126
+ message : '`<script>` is empty. Empty block is not allowed.' ,
127
+ line : 1 ,
128
+ column : 13 ,
129
+ endLine : 1 ,
130
+ endColumn : 23
95
131
}
96
132
]
97
133
} ,
@@ -100,10 +136,18 @@ tester.run('no-empty-component-block', rule, {
100
136
output : '<script src="" />' ,
101
137
errors : [
102
138
{
103
- message : '`<template>` is empty. Empty block is not allowed.'
139
+ message : '`<template>` is empty. Empty block is not allowed.' ,
140
+ line : 1 ,
141
+ column : 1 ,
142
+ endLine : 1 ,
143
+ endColumn : 20
104
144
} ,
105
145
{
106
- message : '`<script>` is empty. Empty block is not allowed.'
146
+ message : '`<script>` is empty. Empty block is not allowed.' ,
147
+ line : 1 ,
148
+ column : 20 ,
149
+ endLine : 1 ,
150
+ endColumn : 37
107
151
}
108
152
]
109
153
} ,
@@ -112,13 +156,25 @@ tester.run('no-empty-component-block', rule, {
112
156
output : '<script></script>' ,
113
157
errors : [
114
158
{
115
- message : '`<template>` is empty. Empty block is not allowed.'
159
+ message : '`<template>` is empty. Empty block is not allowed.' ,
160
+ line : 1 ,
161
+ column : 1 ,
162
+ endLine : 1 ,
163
+ endColumn : 22
116
164
} ,
117
165
{
118
- message : '`<script>` is empty. Empty block is not allowed.'
166
+ message : '`<script>` is empty. Empty block is not allowed.' ,
167
+ line : 1 ,
168
+ column : 22 ,
169
+ endLine : 1 ,
170
+ endColumn : 39
119
171
} ,
120
172
{
121
- message : '`<style>` is empty. Empty block is not allowed.'
173
+ message : '`<style>` is empty. Empty block is not allowed.' ,
174
+ line : 1 ,
175
+ column : 39 ,
176
+ endLine : 1 ,
177
+ endColumn : 54
122
178
}
123
179
]
124
180
} ,
@@ -127,13 +183,25 @@ tester.run('no-empty-component-block', rule, {
127
183
output : '<script />' ,
128
184
errors : [
129
185
{
130
- message : '`<template>` is empty. Empty block is not allowed.'
186
+ message : '`<template>` is empty. Empty block is not allowed.' ,
187
+ line : 1 ,
188
+ column : 1 ,
189
+ endLine : 1 ,
190
+ endColumn : 13
131
191
} ,
132
192
{
133
- message : '`<script>` is empty. Empty block is not allowed.'
193
+ message : '`<script>` is empty. Empty block is not allowed.' ,
194
+ line : 1 ,
195
+ column : 13 ,
196
+ endLine : 1 ,
197
+ endColumn : 23
134
198
} ,
135
199
{
136
- message : '`<style>` is empty. Empty block is not allowed.'
200
+ message : '`<style>` is empty. Empty block is not allowed.' ,
201
+ line : 1 ,
202
+ column : 23 ,
203
+ endLine : 1 ,
204
+ endColumn : 32
137
205
}
138
206
]
139
207
} ,
@@ -142,13 +210,25 @@ tester.run('no-empty-component-block', rule, {
142
210
output : '<script src="" />' ,
143
211
errors : [
144
212
{
145
- message : '`<template>` is empty. Empty block is not allowed.'
213
+ message : '`<template>` is empty. Empty block is not allowed.' ,
214
+ line : 1 ,
215
+ column : 1 ,
216
+ endLine : 1 ,
217
+ endColumn : 20
146
218
} ,
147
219
{
148
- message : '`<script>` is empty. Empty block is not allowed.'
220
+ message : '`<script>` is empty. Empty block is not allowed.' ,
221
+ line : 1 ,
222
+ column : 20 ,
223
+ endLine : 1 ,
224
+ endColumn : 37
149
225
} ,
150
226
{
151
- message : '`<style>` is empty. Empty block is not allowed.'
227
+ message : '`<style>` is empty. Empty block is not allowed.' ,
228
+ line : 1 ,
229
+ column : 37 ,
230
+ endLine : 1 ,
231
+ endColumn : 53
152
232
}
153
233
]
154
234
} ,
@@ -158,13 +238,25 @@ tester.run('no-empty-component-block', rule, {
158
238
output : ' ' ,
159
239
errors : [
160
240
{
161
- message : '`<template>` is empty. Empty block is not allowed.'
241
+ message : '`<template>` is empty. Empty block is not allowed.' ,
242
+ line : 1 ,
243
+ column : 1 ,
244
+ endLine : 1 ,
245
+ endColumn : 22
162
246
} ,
163
247
{
164
- message : '`<script>` is empty. Empty block is not allowed.'
248
+ message : '`<script>` is empty. Empty block is not allowed.' ,
249
+ line : 1 ,
250
+ column : 23 ,
251
+ endLine : 1 ,
252
+ endColumn : 40
165
253
} ,
166
254
{
167
- message : '`<style>` is empty. Empty block is not allowed.'
255
+ message : '`<style>` is empty. Empty block is not allowed.' ,
256
+ line : 1 ,
257
+ column : 41 ,
258
+ endLine : 1 ,
259
+ endColumn : 56
168
260
}
169
261
]
170
262
} ,
@@ -173,13 +265,25 @@ tester.run('no-empty-component-block', rule, {
173
265
output : ' ' ,
174
266
errors : [
175
267
{
176
- message : '`<template>` is empty. Empty block is not allowed.'
268
+ message : '`<template>` is empty. Empty block is not allowed.' ,
269
+ line : 1 ,
270
+ column : 1 ,
271
+ endLine : 1 ,
272
+ endColumn : 13
177
273
} ,
178
274
{
179
- message : '`<script>` is empty. Empty block is not allowed.'
275
+ message : '`<script>` is empty. Empty block is not allowed.' ,
276
+ line : 1 ,
277
+ column : 14 ,
278
+ endLine : 1 ,
279
+ endColumn : 24
180
280
} ,
181
281
{
182
- message : '`<style>` is empty. Empty block is not allowed.'
282
+ message : '`<style>` is empty. Empty block is not allowed.' ,
283
+ line : 1 ,
284
+ column : 25 ,
285
+ endLine : 1 ,
286
+ endColumn : 34
183
287
}
184
288
]
185
289
} ,
@@ -188,13 +292,25 @@ tester.run('no-empty-component-block', rule, {
188
292
output : ' ' ,
189
293
errors : [
190
294
{
191
- message : '`<template>` is empty. Empty block is not allowed.'
295
+ message : '`<template>` is empty. Empty block is not allowed.' ,
296
+ line : 1 ,
297
+ column : 1 ,
298
+ endLine : 1 ,
299
+ endColumn : 20
192
300
} ,
193
301
{
194
- message : '`<script>` is empty. Empty block is not allowed.'
302
+ message : '`<script>` is empty. Empty block is not allowed.' ,
303
+ line : 1 ,
304
+ column : 21 ,
305
+ endLine : 1 ,
306
+ endColumn : 38
195
307
} ,
196
308
{
197
- message : '`<style>` is empty. Empty block is not allowed.'
309
+ message : '`<style>` is empty. Empty block is not allowed.' ,
310
+ line : 1 ,
311
+ column : 39 ,
312
+ endLine : 1 ,
313
+ endColumn : 55
198
314
}
199
315
]
200
316
} ,
@@ -203,10 +319,18 @@ tester.run('no-empty-component-block', rule, {
203
319
output : '<template><p></p></template> ' ,
204
320
errors : [
205
321
{
206
- message : '`<script>` is empty. Empty block is not allowed.'
322
+ message : '`<script>` is empty. Empty block is not allowed.' ,
323
+ line : 1 ,
324
+ column : 30 ,
325
+ endLine : 1 ,
326
+ endColumn : 47
207
327
} ,
208
328
{
209
- message : '`<style>` is empty. Empty block is not allowed.'
329
+ message : '`<style>` is empty. Empty block is not allowed.' ,
330
+ line : 1 ,
331
+ column : 48 ,
332
+ endLine : 1 ,
333
+ endColumn : 64
210
334
}
211
335
]
212
336
}
0 commit comments