Introduce --strict compiler option

This commit is contained in:
Anders Hejlsberg committed 2017-03-03 10:25:10 -08:00
1 parent 5abb8f3caa
commit cda741d14a
7 files changed
+40 -27

No files matched your search

+6 -1
View File
@@ -467,6 +467,11 @@ namespace ts {
type: "boolean",
description: Diagnostics.Parse_in_strict_mode_and_emit_use_strict_for_each_source_file
},
{
name: "strict",
type: "boolean",
description: Diagnostics.Enable_all_strict_type_checks
},
{
// A list of plugins to load in the language service
name: "plugins",
@@ -520,7 +525,7 @@ namespace ts {
export const defaultInitCompilerOptions: CompilerOptions = {
module: ModuleKind.CommonJS,
target: ScriptTarget.ES5,
noImplicitAny: false,
strict: false,
sourceMap: false,
};