Docs: no-unreachable
is not necessarily handled by TypeScript
#18378
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
documentation
Relates to ESLint's documentation
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
The text was updated successfully, but these errors were encountered: