Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit ab07c3e

Browse files
committed
fix: type of lintResult
1 parent 19820fe commit ab07c3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/worker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ async function lint(content: string, filePath: string, options: Tslint.ILinterOp
181181
return null;
182182
}
183183

184-
let lintResult: Tslint.Linter;
184+
let lintResult: Tslint.LintResult;
185185
try {
186186
const Linter = await getLinter(filePath);
187187
const configurationPath = Linter.findConfigurationPath(null, filePath);
@@ -220,7 +220,7 @@ async function lint(content: string, filePath: string, options: Tslint.ILinterOp
220220
lintResult = linter.getResult();
221221
} catch (err) {
222222
console.error(err.message, err.stack); // eslint-disable-line no-console
223-
lintResult = {};
223+
lintResult = { errorCount: 0, warningCount: 0, failures: [], format: "", output: "" };
224224
}
225225

226226
if (

0 commit comments

Comments
 (0)