From 736c1d9fd762d777f057729d2b043339b1713f47 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Sat, 3 Jul 2021 10:56:32 -0400 Subject: [PATCH 1/2] Fix tsc complaint in runCli.ts --- src/cli/runCli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/runCli.ts b/src/cli/runCli.ts index 42ab7b763..7dfa57e65 100644 --- a/src/cli/runCli.ts +++ b/src/cli/runCli.ts @@ -42,7 +42,7 @@ export const runCli = async ( const parsedArgv = { config: "./.eslintrc.js", - ...command.parse(rawArgv).opts(), + ...(command.parse(rawArgv).opts() as Partial), } as TSLintToESLintSettings; // 2. If the version should be printed, we do that and stop execution. From 75135da9bcc48d7241c29483eedd3a12ad5ea58b Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Sat, 3 Jul 2021 11:12:03 -0400 Subject: [PATCH 2/2] Eslint disable... --- src/cli/runCli.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cli/runCli.ts b/src/cli/runCli.ts index 7dfa57e65..0c0ba5b46 100644 --- a/src/cli/runCli.ts +++ b/src/cli/runCli.ts @@ -42,6 +42,7 @@ export const runCli = async ( const parsedArgv = { config: "./.eslintrc.js", + // eslint-disable-next-line -- this gets deduced as the same type, for some erroneous reason ...(command.parse(rawArgv).opts() as Partial), } as TSLintToESLintSettings;