Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
stevemao committed Dec 28, 2018
1 parent d806fc8 commit 6523eed
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion lib/rules/no-unescaped-entities.js
Expand Up @@ -40,7 +40,26 @@ module.exports = {
type: 'object',
properties: {
forbid: {
type: 'array'
type: 'array',
items: {
oneOf: [{
type: 'string'
}, {
type: 'object',
properties: {
char: {
type: 'string'
},
alternatives: {
type: 'array',
uniqueItems: true,
items: {
type: 'string'
}
}
}
}]
}
}
},
additionalProperties: false
Expand Down

0 comments on commit 6523eed

Please sign in to comment.