summaryrefslogtreecommitdiff
path: root/cli/js/compiler.ts
diff options
context:
space:
mode:
authorRy Dahl <ry@tinyclouds.org>2019-11-14 15:05:36 -0500
committerGitHub <noreply@github.com>2019-11-14 15:05:36 -0500
commit4902a1cacb0348efde9ab342172f2706ac27e837 (patch)
treeabbc0dbdcc03b232d01274cea0940a377223a767 /cli/js/compiler.ts
parent8b90b8e88325d28fe41d8312ea91417b6e66a12e (diff)
Turn on TS strict mode for deno_typescript (#3330)
Diffstat (limited to 'cli/js/compiler.ts')
-rw-r--r--cli/js/compiler.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/js/compiler.ts b/cli/js/compiler.ts
index 775277cdd..1779f76c3 100644
--- a/cli/js/compiler.ts
+++ b/cli/js/compiler.ts
@@ -285,7 +285,7 @@ async function processImports(
referrer = ""
): Promise<SourceFileJson[]> {
if (!specifiers.length) {
- return;
+ return [];
}
const sources = specifiers.map(([, moduleSpecifier]) => moduleSpecifier);
const sourceFiles = await fetchSourceFiles(sources, referrer);
@@ -385,6 +385,8 @@ class Host implements ts.CompilerHost {
private readonly _options: ts.CompilerOptions = {
allowJs: true,
allowNonTsExtensions: true,
+ // TODO(#3324) Enable strict mode for user code.
+ // strict: true,
checkJs: false,
esModuleInterop: true,
module: ts.ModuleKind.ESNext,