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

format/control-flow/no-alternative-syntax

In the format-laravel preset. Safe fix.

What it does

Replace control structure alternative syntax to use braces.

Configuration

[format.rules]
"control-flow/no-alternative-syntax" = true

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

Options

Name Type Allowed values Default Upstream name
fix-non-monolithic-code bool Any true fix_non_monolithic_code

Replaces

More format/control-flow rules · Edit this page

Last updated on

Was this page helpful?