Skip to content

Commit d23574c

Browse files
authored
docs: Clarify usage of no-unreachable with TypeScript (#18445)
docs: Clarify usage of no-unreachable with TypeScript Fixes: #18378
1 parent 1db9bae commit d23574c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/src/rules/no-unreachable.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
title: no-unreachable
33
rule_type: problem
44
handled_by_typescript: true
5+
extra_typescript_info: >-
6+
TypeScript must be configured with
7+
[`allowUnreachableCode: false`](https://www.typescriptlang.org/tsconfig#allowUnreachableCode)
8+
for it to consider unreachable code an error.
59
---
610

711

0 commit comments

Comments
 (0)