diff --git a/webapp/package-lock.json b/webapp/package-lock.json index bcc358d..cb3a8e8 100644 --- a/webapp/package-lock.json +++ b/webapp/package-lock.json @@ -25,6 +25,7 @@ "@babel/plugin-transform-private-property-in-object": "^7.23.4", "axios-mock-adapter": "^1.22.0", "expect-puppeteer": "^9.0.2", + "typescript": "4.9.5", "jest": "^29.3.1", "jest-cucumber": "^3.0.1", "jest-environment-node": "^29.7.0", diff --git a/webapp/package.json b/webapp/package.json index 6e59b09..4a80a3e 100644 --- a/webapp/package.json +++ b/webapp/package.json @@ -46,6 +46,7 @@ "@babel/plugin-transform-private-property-in-object": "^7.23.4", "axios-mock-adapter": "^1.22.0", "expect-puppeteer": "^9.0.2", + "typescript": "4.9.5", "jest": "^29.3.1", "jest-cucumber": "^3.0.1", "jest-environment-node": "^29.7.0", diff --git a/webapp/tsconfig.json b/webapp/tsconfig.json new file mode 100644 index 0000000..b6f849c --- /dev/null +++ b/webapp/tsconfig.json @@ -0,0 +1,39 @@ +{ + "compilerOptions": { + // project options + "lib": [ + "ESNext", + "dom" + ], + "outDir": "lib", + "removeComments": true, + "target": "ES6", + + // Module resolution + "baseUrl": "./", + "esModuleInterop": true, + "moduleResolution": "node", + "paths": {}, + + // Source Map + "sourceMap": true, + "sourceRoot": "/", + + // Strict Checks + "alwaysStrict": true, + "allowUnreachableCode": false, + "noImplicitAny": true, + "strictNullChecks": true, + + // Linter Checks + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "noUncheckedIndexedAccess": true, + "noUnusedLocals": true, + "noUnusedParameters": true + }, + "include": ["./**/*.ts"], + "exclude": [ + "node_modules/**/*" + ] + } \ No newline at end of file