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

format/imports/single-per-statement

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

What it does

There MUST be one use keyword per declaration.

Configuration

[format.rules]
"imports/single-per-statement" = true

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

Options

Name Type Allowed values Default Upstream name
group-to-single-imports bool Any true group_to_single_imports

Replaces

Linked rules

More format/imports rules · Edit this page

Last updated on

Was this page helpful?