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 e12c2ad commit 85b70bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/no-duplicates.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function getFix(first, rest, sourceCode, context) {
const [specifiersText] = specifiers.reduce(
([result, needsComma], specifier) => {
const isTypeSpecifier = specifier.importNode.importKind === 'type';
const inlineTypeImport = context.options[0] && context.options[0]['inlineTypeImport'];
const inlineTypeImport = context.options[0] && context.options[0].inlineTypeImport;
const insertText = `${inlineTypeImport && isTypeSpecifier ? 'type ' : ''}${specifier.text}`;
return [
needsComma && !specifier.isEmpty
Expand Down

0 comments on commit 85b70bc

Please sign in to comment.