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

format/arrays/trailing-comma-multiline

In the format-laravel preset. Safe fix.

What it does

Arguments lists, array destructuring lists, arrays that are multi-line, match-lines and parameters lists must have a trailing comma.

Configuration

[format.rules]
"arrays/trailing-comma-multiline" = true

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

Options

Name Type Allowed values Default Upstream name
after-heredoc bool Any false after_heredoc
elements list arguments, array-destructuring, arrays, match, parameters ["arrays"] elements

Replaces

More format/arrays rules · Edit this page

Last updated on

Was this page helpful?