Skip to content

Commit 27d73a8

Browse files
committed
Keep linter happy
1 parent b1a85ee commit 27d73a8

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
@@ -126,13 +126,13 @@ function createImportTransformerFromProgram(program: ts.Program) {
126126

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

132-
for (let spec of newBindings.elements) {
133-
let ident = spec.name;
134-
let symbol = checker.getSymbolAtLocation(ident);
135-
let aliased = checker.getAliasedSymbol(symbol);
132+
for (const spec of newBindings.elements) {
133+
const ident = spec.name;
134+
const symbol = checker.getSymbolAtLocation(ident);
135+
const aliased = checker.getAliasedSymbol(symbol);
136136
if (aliased) {
137137
if ((aliased.flags & (ts.SymbolFlags.TypeAlias | ts.SymbolFlags.Interface)) > 0) {
138138
continue; //We found an imported type, don't add to our new import clause
@@ -232,7 +232,7 @@ function compileFileFromMemory(
232232

233233
const program = ts.createProgram([dummyFileName], compilerOptions, host);
234234

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

237237
const emitResult = program.emit(
238238
program.getSourceFile(dummyFileName),

0 commit comments

Comments
 (0)