@@ -63,15 +63,23 @@ tester.run('enforce-style-attribute', rule, {
63
63
code : `<template></template><script></script><style></style>` ,
64
64
errors : [
65
65
{
66
- message : 'Plain <style> tags are not allowed. Allowed: scoped.'
66
+ message : 'Plain <style> tags are not allowed. Allowed: scoped.' ,
67
+ line : 1 ,
68
+ column : 39 ,
69
+ endLine : 1 ,
70
+ endColumn : 54
67
71
}
68
72
]
69
73
} ,
70
74
{
71
75
code : `<template></template><script></script><style module></style>` ,
72
76
errors : [
73
77
{
74
- message : 'The module attribute is not allowed. Allowed: scoped.'
78
+ message : 'The module attribute is not allowed. Allowed: scoped.' ,
79
+ line : 1 ,
80
+ column : 39 ,
81
+ endLine : 1 ,
82
+ endColumn : 61
75
83
}
76
84
]
77
85
} ,
@@ -81,7 +89,11 @@ tester.run('enforce-style-attribute', rule, {
81
89
options : [ { allow : [ 'scoped' ] } ] ,
82
90
errors : [
83
91
{
84
- message : 'Plain <style> tags are not allowed. Allowed: scoped.'
92
+ message : 'Plain <style> tags are not allowed. Allowed: scoped.' ,
93
+ line : 1 ,
94
+ column : 39 ,
95
+ endLine : 1 ,
96
+ endColumn : 54
85
97
}
86
98
]
87
99
} ,
@@ -90,7 +102,11 @@ tester.run('enforce-style-attribute', rule, {
90
102
options : [ { allow : [ 'scoped' ] } ] ,
91
103
errors : [
92
104
{
93
- message : 'The module attribute is not allowed. Allowed: scoped.'
105
+ message : 'The module attribute is not allowed. Allowed: scoped.' ,
106
+ line : 1 ,
107
+ column : 39 ,
108
+ endLine : 1 ,
109
+ endColumn : 61
94
110
}
95
111
]
96
112
} ,
@@ -100,7 +116,11 @@ tester.run('enforce-style-attribute', rule, {
100
116
options : [ { allow : [ 'module' ] } ] ,
101
117
errors : [
102
118
{
103
- message : 'Plain <style> tags are not allowed. Allowed: module.'
119
+ message : 'Plain <style> tags are not allowed. Allowed: module.' ,
120
+ line : 1 ,
121
+ column : 39 ,
122
+ endLine : 1 ,
123
+ endColumn : 54
104
124
}
105
125
]
106
126
} ,
@@ -109,7 +129,11 @@ tester.run('enforce-style-attribute', rule, {
109
129
options : [ { allow : [ 'module' ] } ] ,
110
130
errors : [
111
131
{
112
- message : 'The scoped attribute is not allowed. Allowed: module.'
132
+ message : 'The scoped attribute is not allowed. Allowed: module.' ,
133
+ line : 1 ,
134
+ column : 39 ,
135
+ endLine : 1 ,
136
+ endColumn : 61
113
137
}
114
138
]
115
139
} ,
@@ -120,7 +144,11 @@ tester.run('enforce-style-attribute', rule, {
120
144
errors : [
121
145
{
122
146
message :
123
- 'Plain <style> tags are not allowed. Allowed: module, scoped.'
147
+ 'Plain <style> tags are not allowed. Allowed: module, scoped.' ,
148
+ line : 1 ,
149
+ column : 39 ,
150
+ endLine : 1 ,
151
+ endColumn : 54
124
152
}
125
153
]
126
154
} ,
@@ -130,7 +158,11 @@ tester.run('enforce-style-attribute', rule, {
130
158
errors : [
131
159
{
132
160
message :
133
- 'The module attribute is not allowed. Allowed: plain, scoped.'
161
+ 'The module attribute is not allowed. Allowed: plain, scoped.' ,
162
+ line : 1 ,
163
+ column : 39 ,
164
+ endLine : 1 ,
165
+ endColumn : 61
134
166
}
135
167
]
136
168
} ,
@@ -140,7 +172,11 @@ tester.run('enforce-style-attribute', rule, {
140
172
errors : [
141
173
{
142
174
message :
143
- 'The scoped attribute is not allowed. Allowed: module, plain.'
175
+ 'The scoped attribute is not allowed. Allowed: module, plain.' ,
176
+ line : 1 ,
177
+ column : 39 ,
178
+ endLine : 1 ,
179
+ endColumn : 61
144
180
}
145
181
]
146
182
}
0 commit comments