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

format/imports/blank-lines-before-namespace

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

What it does

Controls blank lines before a namespace declaration.

Configuration

[format.rules]
"imports/blank-lines-before-namespace" = true

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

Options

Name Type Allowed values Default Upstream name
max-line-breaks int Any 2 max_line_breaks
min-line-breaks int Any 2 min_line_breaks

Replaces

More format/imports rules · Edit this page

Last updated on

Was this page helpful?