Skip to content

Commit

Permalink
Update src/rules/no-duplicates.js
Browse files Browse the repository at this point in the history
Co-authored-by: Jordan Harband <ljharb@gmail.com>
  • Loading branch information
snewcomer and ljharb committed Nov 6, 2022
1 parent 85b70bc commit 5d26984
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rules/no-duplicates.js
Expand Up @@ -296,7 +296,8 @@ module.exports = {
const map = moduleMaps.get(n.parent);
if (n.importKind === 'type') {
return n.specifiers.length > 0 && n.specifiers[0].type === 'ImportDefaultSpecifier' ? map.defaultTypesImported : map.namedTypesImported;
} else if (n.specifiers.some((spec) => spec.importKind === 'type')) {
}
if (n.specifiers.some((spec) => spec.importKind === 'type')) {
return map.namedTypesImported;
}

Expand Down

0 comments on commit 5d26984

Please sign in to comment.