Rule: no-unsafe-finally
Disallows control flow statements, such as return
, continue
,
break
and throws
in finally blocks.
Rationale
When used inside finally
blocks, control flow statements,
such as return
, continue
, break
and throws
override any other control flow statements in the same try/catch scope.
This is confusing and unexpected behavior.
Config
Not configurable.
Config examples
"no-unsafe-finally": true
Schema
null