mirror of https://github.com/zulip/zulip.git
tsconfig: Set module-related options.
Set `--esModuleInterop` and `--isolatedModules` for consistency with Babel. `tsc --init` adds `--esModuleInterop` by default. Set `--moduleResolution node` so we can find type definitions in modules that provide them. Set `--forceConsistentCasingInFileNames`, which seems like a good idea, and which `tsc --init` will add by default in TypeScript 3.7. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
parent
7a0a186e5f
commit
8654af367d
|
@ -10,11 +10,15 @@
|
|||
"noEmit": true,
|
||||
"target": "es5",
|
||||
"module": "es6",
|
||||
"esModuleInterop": true,
|
||||
"moduleResolution": "node",
|
||||
"sourceMap": true,
|
||||
|
||||
/* Strict type-checking */
|
||||
"strict": true,
|
||||
"strictNullChecks": false,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"isolatedModules": true,
|
||||
|
||||
/* Additional checks */
|
||||
"noUnusedLocals": true,
|
||||
|
|
Loading…
Reference in New Issue