From 318dcc33afd510c02984d4d3527c88bf4383bcf1 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Thu, 4 Nov 2021 11:30:37 +0100 Subject: Revert "feat(cli): enable `useUnknownInCatchVariables` by default" (#12643) This partially reverts commit a065604155991dbf4417b606d4562d275cd8955f. Co-authored-by: Kitson Kelly --- cli/tests/testdata/useUnknownInCatchVariables.ts | 5 ----- cli/tests/testdata/useUnknownInCatchVariables.ts.out | 5 ----- 2 files changed, 10 deletions(-) delete mode 100644 cli/tests/testdata/useUnknownInCatchVariables.ts delete mode 100644 cli/tests/testdata/useUnknownInCatchVariables.ts.out (limited to 'cli/tests/testdata') diff --git a/cli/tests/testdata/useUnknownInCatchVariables.ts b/cli/tests/testdata/useUnknownInCatchVariables.ts deleted file mode 100644 index abab554a4..000000000 --- a/cli/tests/testdata/useUnknownInCatchVariables.ts +++ /dev/null @@ -1,5 +0,0 @@ -try { - throw new Error(); -} catch (e) { - console.log(e.message); -} diff --git a/cli/tests/testdata/useUnknownInCatchVariables.ts.out b/cli/tests/testdata/useUnknownInCatchVariables.ts.out deleted file mode 100644 index 3c29d3229..000000000 --- a/cli/tests/testdata/useUnknownInCatchVariables.ts.out +++ /dev/null @@ -1,5 +0,0 @@ -[WILDCARD] -error: TS2571 [ERROR]: Object is of type 'unknown'. - console.log(e.message); - ^ - at file://[WILDCARD]/useUnknownInCatchVariables.ts:4:15 -- cgit v1.2.3