Skip to content

Commit b572d15

Browse files
Default --strict to true.
1 parent 178a0e0 commit b572d15

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/compiler/utilities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9310,7 +9310,7 @@ export type StrictOptionName =
93109310

93119311
/** @internal */
93129312
export function getStrictOptionValue(compilerOptions: CompilerOptions, flag: StrictOptionName): boolean {
9313-
return compilerOptions[flag] === undefined ? !!compilerOptions.strict : !!compilerOptions[flag];
9313+
return compilerOptions[flag] === undefined ? (compilerOptions.strict !== false) : !!compilerOptions[flag];
93149314
}
93159315

93169316
/** @internal */

0 commit comments

Comments
 (0)