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

format/functions/declaration

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

What it does

Spaces should be properly placed in a function declaration.

Configuration

[format.rules]
"functions/declaration" = true

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

Options

Name Type Allowed values Default Upstream name
closure-fn-spacing enum none, one "one" closure_fn_spacing
closure-function-spacing enum none, one "one" closure_function_spacing
trailing-comma-single-line bool Any false trailing_comma_single_line

Replaces

More format/functions rules · Edit this page

Last updated on

Was this page helpful?