Skip to content

Commit 6523eed

Browse files
committed
fix types
1 parent d806fc8 commit 6523eed

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

lib/rules/no-unescaped-entities.js

+20-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,26 @@ module.exports = {
4040
type: 'object',
4141
properties: {
4242
forbid: {
43-
type: 'array'
43+
type: 'array',
44+
items: {
45+
oneOf: [{
46+
type: 'string'
47+
}, {
48+
type: 'object',
49+
properties: {
50+
char: {
51+
type: 'string'
52+
},
53+
alternatives: {
54+
type: 'array',
55+
uniqueItems: true,
56+
items: {
57+
type: 'string'
58+
}
59+
}
60+
}
61+
}]
62+
}
4463
}
4564
},
4665
additionalProperties: false

0 commit comments

Comments
 (0)