Skip to content

Commit bc87a95

Browse files
authored
fix: allowUnreachableCode default should be undefined (#1101)
- it was recently changed to undefined in the TSConfig Reference in ea8407c - this carries over that change to the Compiler Options docs as well - and it being undefined seems to align with my past experience with unreachable code in TS, but have not tested directly recently
1 parent 545bcc5 commit bc87a95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-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
@@ -35,7 +35,7 @@ Option | Type | Default
3535
`--allowJs` | `boolean` | `false` | Allow JavaScript files to be compiled.
3636
`--allowSyntheticDefaultImports` | `boolean` | `module === "system"` or `--esModuleInterop` | Allow default imports from modules with no default export. This does not affect code emit, just typechecking.
3737
`--allowUmdGlobalAccess` | `boolean` | `false` | Allow accessing UMD globals from modules.
38-
`--allowUnreachableCode` | `boolean` | `false` | Do not report errors on unreachable code.
38+
`--allowUnreachableCode` | `boolean` | | Do not report errors on unreachable code.
3939
`--allowUnusedLabels` | `boolean` | `false` | Do not report errors on unused labels.
4040
`--alwaysStrict` | `boolean` | `false` | Parse in strict mode and emit `"use strict"` for each source file
4141
`--assumeChangesOnlyAffectDirectDependencies` | `boolean` | `false` | Have recompiles in `--incremental` and `--watch` assume that changes within a file will only affect files directly depending on it

0 commit comments

Comments
 (0)