From 8654af367d289ed7486c14964a0b49308fbad7ee Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Tue, 29 Oct 2019 16:25:26 -0700 Subject: [PATCH] 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 --- static/js/tsconfig.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/js/tsconfig.json b/static/js/tsconfig.json index fd9e9b0c40..247b687b8c 100644 --- a/static/js/tsconfig.json +++ b/static/js/tsconfig.json @@ -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,