Skip to content

Commit 2959fa0

Browse files
halfnelsonkaisermann
authored andcommitted
Keep linter happy
1 parent cc451e6 commit 2959fa0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/transformers/typescript.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,13 @@ function createImportTransformerFromProgram(program: ts.Program) {
135135

136136
// types can't be default exports, so we just worry about { blah } and { blah as name } exports
137137
if (newImportClause.namedBindings && ts.isNamedImports(newImportClause.namedBindings)) {
138-
let newBindings = ts.getMutableClone(newImportClause.namedBindings);
139-
let newElements = [];
138+
const newBindings = ts.getMutableClone(newImportClause.namedBindings);
139+
const newElements = [];
140140

141-
for (let spec of newBindings.elements) {
142-
let ident = spec.name;
143-
let symbol = checker.getSymbolAtLocation(ident);
144-
let aliased = checker.getAliasedSymbol(symbol);
141+
for (const spec of newBindings.elements) {
142+
const ident = spec.name;
143+
const symbol = checker.getSymbolAtLocation(ident);
144+
const aliased = checker.getAliasedSymbol(symbol);
145145
if (aliased) {
146146
if ((aliased.flags & (ts.SymbolFlags.TypeAlias | ts.SymbolFlags.Interface)) > 0) {
147147
continue; //We found an imported type, don't add to our new import clause
@@ -242,7 +242,7 @@ function compileFileFromMemory(
242242

243243
const program = ts.createProgram([dummyFileName], compilerOptions, host);
244244

245-
let transformers = { before: [createImportTransformerFromProgram(program)] }
245+
const transformers = { before: [createImportTransformerFromProgram(program)] }
246246

247247
const emitResult = program.emit(
248248
program.getSourceFile(dummyFileName),

0 commit comments

Comments
 (0)