Skip to content

Commit ee55d86

Browse files
committed
document tsconfig options without a documented default as default: false
1 parent c95f3eb commit ee55d86

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" && defaultValue === undefined)
285+
return "false";
284286
if (defaultValue === undefined || typeof type !== "object")
285287
return defaultValue;
286288
// e.g. ScriptTarget.ES2015 -> "es6/es2015"

0 commit comments

Comments
 (0)