Skip to content

Commit

Permalink
Migrating the project from JavaScript to TypeScript (part 1)
Browse files Browse the repository at this point in the history
  • Loading branch information
UO282206 authored and UO282206 committed Feb 19, 2024
1 parent c4d2e2e commit ba7a54a
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions webapp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
39 changes: 39 additions & 0 deletions webapp/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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/**/*"
]
}

0 comments on commit ba7a54a

Please sign in to comment.