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

format/types/union-spacing

In the format-laravel preset. Safe fix.

What it does

A single space or none should be around union type and intersection type operators.

Configuration

[format.rules]
"types/union-spacing" = true

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

Options

Name Type Allowed values Default Upstream name
space enum none, single "none" space
space-multiple-catch enum none, single "same-as-space" space_multiple_catch

Replaces

More format/types rules · Edit this page

Last updated on

Was this page helpful?