Turn on --strictAny when compiling compiler

This commit is contained in:
Anders Hejlsberg
2018-05-29 11:29:36 -07:00
parent 1e00f916ce
commit c643bb5f2b
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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(" ");
+1
View File
@@ -3,6 +3,7 @@
"lib": ["es5"],
"noEmitOnError": true,
"strictNullChecks": true,
"strictAny": true,
"noImplicitAny": true,
"noImplicitThis": true,
"noUnusedLocals": true,