From 4b1996534c28f276b80a412bbff9620f3da59a47 Mon Sep 17 00:00:00 2001 From: Jannis Mattheis Date: Sat, 28 Sep 2019 16:51:16 +0200 Subject: [PATCH] Update typescript --- ui/package.json | 2 +- ui/tsconfig.json | 20 ++++++++++++++++---- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/ui/package.json b/ui/package.json index 7c52e53..a6887e3 100644 --- a/ui/package.json +++ b/ui/package.json @@ -59,7 +59,7 @@ "tree-kill": "^1.2.0", "tslint": "^5.20.0", "tslint-sonarts": "^1.7.0", - "typescript": "^3.0.1", + "typescript": "3.6.2", "wait-on": "^3.0.1" }, "eslintConfig": { diff --git a/ui/tsconfig.json b/ui/tsconfig.json index fa4d47b..4b86b71 100644 --- a/ui/tsconfig.json +++ b/ui/tsconfig.json @@ -1,10 +1,12 @@ { "compilerOptions": { - "baseUrl": ".", + "baseUrl": "src", "outDir": "build/dist", - "module": "esnext", "target": "es5", - "lib": ["es6", "dom"], + "lib": [ + "es6", + "dom" + ], "sourceMap": true, "allowJs": true, "jsx": "react", @@ -18,8 +20,15 @@ "suppressImplicitAnyIndexErrors": true, "noUnusedLocals": true, "allowSyntheticDefaultImports": true, - "experimentalDecorators": true + "experimentalDecorators": true, + "skipLibCheck": true, + "esModuleInterop": true, + "strict": true, "isolatedModules": true, + "noEmit": true, + "module": "esnext", + "resolveJsonModule": true, + "keyofStringsOnly": true }, "exclude": [ "node_modules", @@ -29,5 +38,8 @@ "webpack", "jest", "src/setupTests.ts" + ], + "include": [ + "src" ] }