From c643bb5f2b09125901acadbe05f4272afbf24505 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Tue, 29 May 2018 11:29:36 -0700 Subject: [PATCH] Turn on --strictAny when compiling compiler --- Jakefile.js | 2 +- src/tsconfig-base.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Jakefile.js b/Jakefile.js index 55729eecaad..2ad7ef376c3 100644 --- a/Jakefile.js +++ b/Jakefile.js @@ -251,7 +251,7 @@ function compileFile(outFile, sources, prereqs, prefixes, useBuiltCompiler, opts else { options += " --lib es5"; } - options += " --noUnusedLocals --noUnusedParameters --strictNullChecks"; + options += " --noUnusedLocals --noUnusedParameters --strictNullChecks --strictAny"; var cmd = host + " " + compilerPath + " " + options + " "; cmd = cmd + sources.join(" "); diff --git a/src/tsconfig-base.json b/src/tsconfig-base.json index 92c32e73fcc..98248235b0e 100644 --- a/src/tsconfig-base.json +++ b/src/tsconfig-base.json @@ -3,6 +3,7 @@ "lib": ["es5"], "noEmitOnError": true, "strictNullChecks": true, + "strictAny": true, "noImplicitAny": true, "noImplicitThis": true, "noUnusedLocals": true,