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

format/control-flow/empty-loop-condition

Not in any preset. Safe fix.

What it does

Empty loop-condition must be in configured style.

Configuration

[format.rules]
"control-flow/empty-loop-condition" = true

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

Options

Name Type Allowed values Default Upstream name
style enum while, for "while" style

Replaces

More format/control-flow rules · Edit this page

Last updated on

Was this page helpful?