Closed benj-dobs closed 5 days ago
Always happy to make the documentation clearer. Please feel free to open a PR.
@benj-dobs are you planning on submitting a PR for this?
Yep - I've been a bit busy but I should get to it this week (assuming nobody else takes it)
Docs page(s)
https://eslint.org/docs/latest/rules/no-unreachable#handled_by_typescript
What documentation issue do you want to solve?
The docs currently say:
This is only true if you have
"allowUnreachableCode": false
in yourtsconfig.json
. The default behaviour is just to surface an editor warning.https://www.typescriptlang.org/tsconfig#allowUnreachableCode
What do you think is the correct solution?
If you are using TypeScript, the
allowUnreachableCode
compiler option offers an alternative to this rule.Participation
Additional comments
No response