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

format/arrays/trim-spaces

In the format-laravel preset. Safe fix.

What it does

Arrays should be formatted like function/method arguments, without leading or trailing single line space.

Configuration

[format.rules]
"arrays/trim-spaces" = true

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

Replaces

More format/arrays rules · Edit this page

Last updated on

Was this page helpful?