mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Turn on --strictAny when compiling compiler
This commit is contained in:
+1
-1
@@ -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(" ");
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
"lib": ["es5"],
|
||||
"noEmitOnError": true,
|
||||
"strictNullChecks": true,
|
||||
"strictAny": true,
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"noUnusedLocals": true,
|
||||
|
||||
Reference in New Issue
Block a user