From 1649d41dd550adceb1cde078be731ece9a526241 Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Fri, 22 Oct 2021 21:08:04 +0100 Subject: [PATCH] Adds useUnknownInCatchVariables and disallows .js in tsconfig (#1033) --- tsconfig.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 8e9f2bbb..4c11ea54 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,7 +9,6 @@ "@server/*": ["server/*"], "@ee/*": ["ee/*"] }, - "allowJs": true, "skipLibCheck": true, "strict": true, "strictNullChecks": true, @@ -20,9 +19,10 @@ "moduleResolution": "node", "resolveJsonModule": true, "isolatedModules": true, + "useUnknownInCatchVariables": true, "jsx": "preserve", "types": ["@types/jest", "jest-playwright-preset", "expect-playwright"] }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "lib/*.js"], + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], "exclude": ["node_modules"] }