From 29f049e0a23b82bc2a1d82198e50b2930e1c7b64 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Mon, 13 Sep 2021 13:29:14 -0400 Subject: [PATCH] full ts strict typechecks --- tsconfig.json | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index c51f1a17..de41e5d1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,22 +1,27 @@ { "compilerOptions": { - "module": "es2020", - "target": "es2018", + "module": "esnext", + "target": "esnext", "moduleResolution": "node", - "typeRoots": ["node_modules/@types"], "outDir": "types", "baseUrl": "./", "paths": { "tslib": ["node_modules/tslib/tslib.d.ts"] }, - "noEmitOnError": false, - "declaration": true, "allowJs": true, - "allowSyntheticDefaultImports": true, + "allowSyntheticDefaultImports": false, "allowUnreachableCode": false, "allowUnusedLabels": false, "alwaysStrict": true, + "declaration": true, + "declarationMap": true, "emitDecoratorMetadata": true, + "esModuleInterop": false, + "exactOptionalPropertyTypes": true, "experimentalDecorators": true, + "forceConsistentCasingInFileNames": true, "importHelpers": true, + "importsNotUsedAsValues": "error", + "noEmitHelpers": true, + "noEmitOnError": false, "noFallthroughCasesInSwitch": true, "noImplicitAny": false, "noImplicitOverride": true, @@ -26,7 +31,7 @@ "noUncheckedIndexedAccess": false, "noUnusedLocals": false, "noUnusedParameters": true, - "preserveConstEnums": true, + "preserveConstEnums": false, "pretty": true, "removeComments": false, "resolveJsonModule": true, @@ -35,7 +40,10 @@ "strictBindCallApply": true, "strictFunctionTypes": true, "strictNullChecks": true, - "strictPropertyInitialization": true + "strictPropertyInitialization": true, + "stripInternal": false, + "useDefineForClassFields": true, + "useUnknownInCatchVariables": true }, "formatCodeOptions": { "indentSize": 2, @@ -44,6 +52,6 @@ "exclude": ["node_modules/", "types/", "tfjs/", "dist/"], "include": ["src"], "typedocOptions": { - "externalPattern": ["node_modules/", "tfjs/"], + "externalPattern": ["node_modules/", "tfjs/"] } }