Skip to content

Commit 4649a37

Browse files
committed
temporary fix for publicOnly issue
1 parent 643e029 commit 4649a37

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/rules/requireJsdoc.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,11 @@ const OPTIONS_SCHEMA = {
139139
};
140140

141141
const getOption = (context, baseObject, option, key) => {
142-
if (option in context.options[0] && key in context.options[0][option]) {
142+
if (context.options[0] && option in context.options[0] &&
143+
// Todo: boolean shouldn't be returning property, but tests currently require
144+
(typeof context.options[0][option] === 'boolean' ||
145+
key in context.options[0][option])
146+
) {
143147
return context.options[0][option][key];
144148
}
145149

0 commit comments

Comments
 (0)