Skip to content

Commit

Permalink
temporary fix for publicOnly issue
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Nov 29, 2021
1 parent 643e029 commit 4649a37
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/rules/requireJsdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,11 @@ const OPTIONS_SCHEMA = {
};

const getOption = (context, baseObject, option, key) => {
if (option in context.options[0] && key in context.options[0][option]) {
if (context.options[0] && option in context.options[0] &&
// Todo: boolean shouldn't be returning property, but tests currently require
(typeof context.options[0][option] === 'boolean' ||
key in context.options[0][option])
) {
return context.options[0][option][key];
}

Expand Down

0 comments on commit 4649a37

Please sign in to comment.