mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:53:42 -06:00
Default --strict to true.
This commit is contained in:
parent
178a0e0481
commit
b572d15666
@ -9310,7 +9310,7 @@ export type StrictOptionName =
|
||||
|
||||
/** @internal */
|
||||
export function getStrictOptionValue(compilerOptions: CompilerOptions, flag: StrictOptionName): boolean {
|
||||
return compilerOptions[flag] === undefined ? !!compilerOptions.strict : !!compilerOptions[flag];
|
||||
return compilerOptions[flag] === undefined ? (compilerOptions.strict !== false) : !!compilerOptions[flag];
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user