zulip/static/shared/tsconfig.json
Anders Kaseorg d41917ecd0 shared: Add TypeScript build step.
This transpiles the JavaScript and (future) TypeScript in
`static/shared/js` to `static/shared/lib`. It also compiles away
ES2020 syntax that’s not supported by the oldest JS engines targeted
by zulip-mobile.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-01-18 13:10:13 -08:00

33 lines
757 B
JSON

{
"compilerOptions": {
/* Language and Environment */
"target": "es2019",
/* Modules */
"rootDir": "js",
"moduleResolution": "node",
/* JavaScript Support */
"allowJs": true,
/* Emit */
"declaration": true,
"sourceMap": true,
"outDir": "lib",
/* Interop Constraints */
"isolatedModules": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
/* Type Checking */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
},
"include": ["js"],
}