Closed chdsbd closed 3 years ago
This might be covered by https://eslint.org/docs/rules/no-unreachable
Testing it out, I get an error from typescript and an error from eslint
function foo(f: string) {
switch (f) {
case 'bar':
return 1
break
default:
return 2
}
}
Unreachable code detected. ts(7027)
Unreachable code. eslint no-unreachable