Navigation Menu

Skip to content

Commit

Permalink
Fixed eslint error.
Browse files Browse the repository at this point in the history
  • Loading branch information
el-angel committed May 18, 2020
1 parent 5d4a52c commit 2bd1c3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/rules/no-named-import.js
Expand Up @@ -62,9 +62,9 @@ module.exports = {
const config = options[0] || {
allow: []
};
const forbidConfig = Array.isArray(config.forbid) ?
['forbid', config.forbid] :
['allow', config.allow];
const forbidConfig = Array.isArray(config.forbid)
? ['forbid', config.forbid]
: ['allow', config.allow];

const type = forbidConfig[0];
const list = forbidConfig[1];
Expand Down

0 comments on commit 2bd1c3e

Please sign in to comment.