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

format/statements/multiline-semicolon

In the format-laravel preset. Safe fix.

What it does

Forbid multi-line whitespace before the closing semicolon or move the semicolon to the new line for chained calls.

Configuration

[format.rules]
"statements/multiline-semicolon" = true

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

Options

Name Type Allowed values Default Upstream name
strategy enum no-multi-line, new-line-for-chained-calls "no-multi-line" strategy

Replaces

More format/statements rules · Edit this page

Last updated on

Was this page helpful?