Skip to content

Commit 153711c

Browse files
committed
fix: lint error
1 parent ea8bef8 commit 153711c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/compiler/moduleNameResolver.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,11 +1084,12 @@ namespace ts {
10841084
trace(state.host, Diagnostics.File_name_0_has_a_1_extension_stripping_it, candidate, extension);
10851085
}
10861086
return tryAddingExtensions(extensionless, extensions, onlyRecordFailures, state);
1087-
} else if (hasTSFileExtension(candidate)) {
1087+
}
1088+
else if (hasTSFileExtension(candidate)) {
10881089
// If import './x.ts' or './x.tsx', resolve it
10891090
// if import from '.d.ts', bypass it
10901091
const ext = tryExtractTSExtension(candidate)!;
1091-
if (ext !== '.d.ts') {
1092+
if (ext !== Extension.Dts) {
10921093
const extensionLess = tryRemoveExtension(candidate, ext)!;
10931094
return tryAddingExtensions(extensionLess, extensions, onlyRecordFailures, state);
10941095
}

0 commit comments

Comments
 (0)