Skip to content

Commit d8eb50e

Browse files
authored
Reword strictBuiltinIteratorReturn for consistency (#3308)
1 parent c3e15dd commit d8eb50e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/documentation/copy/en/project-config/Compiler Options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1363,7 +1363,7 @@ tsc app.ts util.ts --target esnext --outfile index.js
13631363
<td><code><a href='/tsconfig/#strictBuiltinIteratorReturn'>--strictBuiltinIteratorReturn</a></code></td>
13641364
<td><p><code>boolean</code></p>
13651365
</td>
1366-
<td><p><code>false</code>, unless <code>strict</code> is set</p>
1366+
<td><p><code>true</code> if <a href="#strict"><code>strict</code></a>; <code>false</code> otherwise.</p>
13671367
</td>
13681368
</tr>
13691369
<tr class="option-description odd"><td colspan="3">

packages/tsconfig-reference/scripts/tsconfigRules.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ export const relatedTo: [AnOption, AnOption[]][] = [
114114
"alwaysStrict",
115115
"strictNullChecks",
116116
"strictBindCallApply",
117+
"strictBuiltinIteratorReturn",
117118
"strictFunctionTypes",
118119
"strictPropertyInitialization",
119120
"noImplicitAny",
@@ -124,6 +125,7 @@ export const relatedTo: [AnOption, AnOption[]][] = [
124125
["alwaysStrict", ["strict"]],
125126
["strictNullChecks", ["strict"]],
126127
["strictBindCallApply", ["strict"]],
128+
["strictBuiltinIteratorReturn", ["strict"]],
127129
["strictFunctionTypes", ["strict"]],
128130
["strictPropertyInitialization", ["strict"]],
129131
["noImplicitAny", ["strict"]],
@@ -256,6 +258,7 @@ export const defaultsForOptions = {
256258
rootDir: "Computed from the list of input files.",
257259
rootDirs: "Computed from the list of input files.",
258260
strictBindCallApply: trueIf("strict"),
261+
strictBuiltinIteratorReturn: trueIf("strict"),
259262
strictFunctionTypes: trueIf("strict"),
260263
useUnknownInCatchVariables: trueIf("strict"),
261264
strictPropertyInitialization: trueIf("strict"),

0 commit comments

Comments
 (0)