Start Typescript inception (#816)

This commit is contained in:
Alberto Gasparin
2023-03-29 08:49:51 +11:00
committed by GitHub
parent c025e516fb
commit c009a0c7fb
16 changed files with 127 additions and 21 deletions

View File

@@ -1,12 +1,22 @@
{
"references": [
// TODO: enable once every project is ts
// { "path": "./packages/api" },
// { "path": "./packages/desktop-client" }
],
"compilerOptions": {
// "composite": true,
"target": "ES2022",
"lib": ["ES2021", "DOM"],
"lib": ["ES2021", "DOM", "DOM.Iterable"],
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"resolveJsonModule": true,
"downlevelIteration": true,
// TODO: enable once every file is ts
// "strict": true,
"noFallthroughCasesInSwitch": true,
"skipLibCheck": true,
"jsx": "preserve",
// Check JS files too
"allowJs": true,
@@ -14,7 +24,10 @@
// Used for temp builds
"outDir": "build",
"moduleResolution": "Node",
"module": "ESNext"
"module": "ESNext",
// Until/if we build using tsc
"noEmit": true
},
"include": ["packages/**/*"],
"exclude": ["**/node_modules/*", "**/build/*", "**/lib-dist/*"]
}