Skip to content

Commit

Permalink
woops
Browse files Browse the repository at this point in the history
  • Loading branch information
snewcomer committed Nov 8, 2022
1 parent 5997f5a commit b2a7716
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 @@ -110,7 +110,7 @@ function getFix(first, rest, sourceCode, context) {
([result, needsComma], specifier) => {
const isTypeSpecifier = specifier.importNode.importKind === 'type';
const preferInline = context.options[0] && context.options[0]['prefer-inline'];
const insertText = `${prefer-inline && isTypeSpecifier ? 'type ' : ''}${specifier.text}`;
const insertText = `${preferInline && isTypeSpecifier ? 'type ' : ''}${specifier.text}`;
return [
needsComma && !specifier.isEmpty
? `${result},${insertText}`
Expand Down

0 comments on commit b2a7716

Please sign in to comment.