Skip to content

Commit 639b7f8

Browse files
committed
document boolean tsconfig option defaults
1 parent c95f3eb commit 639b7f8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/tsconfig-reference/scripts/tsconfigRules.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,8 @@ function formatDefaultValue(
281281
defaultValue: CommandLineOption["defaultValueDescription"],
282282
type: CommandLineOption["type"]
283283
) {
284+
if (type === "boolean" || type === "number")
285+
return JSON.stringify(defaultValue);
284286
if (defaultValue === undefined || typeof type !== "object")
285287
return defaultValue;
286288
// e.g. ScriptTarget.ES2015 -> "es6/es2015"

0 commit comments

Comments
 (0)