Skip to content

Commit

Permalink
[fix] no-unused-modules: make sure that rule with no options will n…
Browse files Browse the repository at this point in the history
…ot fail
  • Loading branch information
Kiwka authored and ljharb committed Apr 15, 2019
1 parent 8e0c021 commit 3512563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/no-unused-modules.js
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 3512563

Please sign in to comment.