Skip to content
Esc
↑↓navigate↵open⌘Jpreview
On this page

lint/control-flow/no-superfluous-elseif

In the dead-code set. Safe fix.

What it does

Replaces superfluous elseif with if.

Configuration

[lint.rules]
"control-flow/no-superfluous-elseif" = "error"

To skip it in some files, add an override or a @pun-ignore-file comment.

Replaces

More lint/control-flow rules · Edit this page

Last updated on

Was this page helpful?