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

format/whitespace/no-extra-blank-lines

In the format-laravel and format-psr12 presets. Safe fix.

What it does

Removes extra blank lines and/or blank lines following configuration.

Configuration

[format.rules]
"whitespace/no-extra-blank-lines" = true

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

Options

Name Type Allowed values Default Upstream name
tokens list attribute, break, case, comma, continue, curly-brace-block, default, extra, parenthesis-brace-block, return, square-brace-block, switch, throw, use, use-trait ["extra"] tokens

Replaces

More format/whitespace rules · Edit this page

Last updated on

Was this page helpful?