Skip to content

Commit

Permalink
Reword strictBuiltinIteratorReturn for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
TomiBelan committed Jan 25, 2025
1 parent f5c5db6 commit 9590798
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1363,7 +1363,7 @@ tsc app.ts util.ts --target esnext --outfile index.js
<td><code><a href='/tsconfig/#strictBuiltinIteratorReturn'>--strictBuiltinIteratorReturn</a></code></td>
<td><p><code>boolean</code></p>
</td>
<td><p><code>false</code>, unless <code>strict</code> is set</p>
<td><p><code>true</code> if <a href="#strict"><code>strict</code></a>; <code>false</code> otherwise.</p>
</td>
</tr>
<tr class="option-description odd"><td colspan="3">
Expand Down
3 changes: 3 additions & 0 deletions packages/tsconfig-reference/scripts/tsconfigRules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export const relatedTo: [AnOption, AnOption[]][] = [
"alwaysStrict",
"strictNullChecks",
"strictBindCallApply",
"strictBuiltinIteratorReturn",
"strictFunctionTypes",
"strictPropertyInitialization",
"noImplicitAny",
Expand All @@ -124,6 +125,7 @@ export const relatedTo: [AnOption, AnOption[]][] = [
["alwaysStrict", ["strict"]],
["strictNullChecks", ["strict"]],
["strictBindCallApply", ["strict"]],
["strictBuiltinIteratorReturn", ["strict"]],
["strictFunctionTypes", ["strict"]],
["strictPropertyInitialization", ["strict"]],
["noImplicitAny", ["strict"]],
Expand Down Expand Up @@ -256,6 +258,7 @@ export const defaultsForOptions = {
rootDir: "Computed from the list of input files.",
rootDirs: "Computed from the list of input files.",
strictBindCallApply: trueIf("strict"),
strictBuiltinIteratorReturn: trueIf("strict"),
strictFunctionTypes: trueIf("strict"),
useUnknownInCatchVariables: trueIf("strict"),
strictPropertyInitialization: trueIf("strict"),
Expand Down

0 comments on commit 9590798

Please sign in to comment.