From 2d0a28a907afb84fea0a23dd90a70d15018ee2d6 Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Thu, 7 Jul 2022 18:54:34 +0300 Subject: [PATCH] tsconfig: Explicitly list all type checking options As part of #3649 research I added all options explicitly and also enable ones that didn't require any code change. We should enable rest of them in a separate PRs. --- tsconfig.json | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index edb522f1d4..7840826261 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,11 +10,21 @@ "target": "es2020", "module": "commonjs", "moduleResolution": "node", - "strict": true, - "useUnknownInCatchVariables": false, "noEmit": true, "isolatedModules": true, "importsNotUsedAsValues": "error", - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "strict": true, + "useUnknownInCatchVariables": false, + "allowUnreachableCode": false, + "allowUnusedLabels": false, + "exactOptionalPropertyTypes": false, + "noFallthroughCasesInSwitch": false, + "noImplicitOverride": false, + "noImplicitReturns": false, + "noPropertyAccessFromIndexSignature": false, + "noUncheckedIndexedAccess": false, + "noUnusedLocals": true, + "noUnusedParameters": true } }