Skip to content

Commit 268a704

Browse files
committed
Refine schema for forbid-dom-props options
1 parent 28654e2 commit 268a704

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/rules/forbid-dom-props.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@ module.exports = {
2828
forbid: {
2929
type: 'array',
3030
items: {
31-
type: 'string'
32-
}
31+
type: 'string',
32+
minLength: 1
33+
},
34+
uniqueItems: true
3335
}
3436
},
35-
additionalProperties: true
37+
additionalProperties: false
3638
}]
3739
},
3840

0 commit comments

Comments
 (0)