mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Introduce --strict compiler option
This commit is contained in:
1 parent
5abb8f3caa
commit
cda741d14a
7 files changed
+40
-27
No files matched your search
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user