Skip to content

Commit

Permalink
fix lint error on shadowed name
Browse files Browse the repository at this point in the history
  • Loading branch information
agilgur5 committed Jun 4, 2022
1 parent 4258895 commit 8b5016b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ const typescript: PluginImpl<RPT2Options> = (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;
Expand Down

0 comments on commit 8b5016b

Please sign in to comment.