From 8b5016be12469c564d26aff12374a27e6e882f07 Mon Sep 17 00:00:00 2001 From: Anton Gilgur Date: Sat, 4 Jun 2022 19:08:59 -0400 Subject: [PATCH] fix lint error on shadowed name --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index fd4f511d..e94b4e97 100644 --- a/src/index.ts +++ b/src/index.ts @@ -56,10 +56,10 @@ const typescript: PluginImpl = (options) => })); } - const typecheckFile = (id: string, snapshot: tsTypes.IScriptSnapshot, context: IContext) => + const typecheckFile = (id: string, snapshot: tsTypes.IScriptSnapshot, tcContext: IContext) => { const diagnostics = getDiagnostics(id, snapshot); - printDiagnostics(context, diagnostics, parsedConfig.options.pretty === true); + printDiagnostics(tcContext, diagnostics, parsedConfig.options.pretty === true); if (diagnostics.length > 0) noErrors = false;