File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,20 @@ module.exports = {
30
30
},
31
31
create() {}
32
32
};
33
+ ` ,
34
+ `
35
+ module.exports = {
36
+ meta: {
37
+ schema: [
38
+ {
39
+ ['description']: 'Elements to allow.',
40
+ elements: { type: 'string' },
41
+ type: 'array',
42
+ },
43
+ ],
44
+ },
45
+ create() {}
46
+ };
33
47
` ,
34
48
`
35
49
module.exports = {
@@ -107,6 +121,31 @@ module.exports = {
107
121
} ,
108
122
{
109
123
code : `
124
+ module.exports = {
125
+ meta: {
126
+ schema: [
127
+ {
128
+ ['de' + 'scription']: 'Computed.',
129
+ elements: { type: 'string' },
130
+ type: 'array',
131
+ },
132
+ ],
133
+ },
134
+ create() {}
135
+ };
136
+ ` ,
137
+ errors : [
138
+ {
139
+ column : 7 ,
140
+ endColumn : 8 ,
141
+ endLine : 9 ,
142
+ line : 5 ,
143
+ messageId : 'missingDescription' ,
144
+ } ,
145
+ ] ,
146
+ } ,
147
+ {
148
+ code : `
110
149
module.exports = {
111
150
meta: {
112
151
schema: [
You can’t perform that action at this time.
0 commit comments