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

Commit

Permalink
fix: resolveAndCacheLinter 2nd argument is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Apr 5, 2021
1 parent 3592007 commit 663cadd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function shim(Linter: Function): TsLintLinter {
return LinterShim;
}

function resolveAndCacheLinter(fileDir: string, moduleDir: string): Promise<TsLintLinter> {
function resolveAndCacheLinter(fileDir: string, moduleDir?: string): Promise<TsLintLinter> {
const basedir = moduleDir || fileDir;
return new Promise((resolve) => {
if (!requireResolve) {
Expand Down

0 comments on commit 663cadd

Please sign in to comment.