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

Commit 663cadd

Browse files
committed
fix: resolveAndCacheLinter 2nd argument is optional
1 parent 3592007 commit 663cadd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function shim(Linter: Function): TsLintLinter {
5151
return LinterShim;
5252
}
5353

54-
function resolveAndCacheLinter(fileDir: string, moduleDir: string): Promise<TsLintLinter> {
54+
function resolveAndCacheLinter(fileDir: string, moduleDir?: string): Promise<TsLintLinter> {
5555
const basedir = moduleDir || fileDir;
5656
return new Promise((resolve) => {
5757
if (!requireResolve) {

0 commit comments

Comments
 (0)