Skip to content

Commit

Permalink
make sure that rule with no options will not fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiwka authored Apr 15, 2019
1 parent b0c5e1a commit 84c8ac1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/no-unused-modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ module.exports = {
ignoreExports = [],
missingExports,
unusedExports,
} = context.options[0]
} = context.options[0] || {};

if (unusedExports && !preparationDone) {
doPreparation(src, ignoreExports, context)
Expand Down

0 comments on commit 84c8ac1

Please sign in to comment.