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

format/operators/increment-style

In the format-laravel preset. Safe fix.

What it does

Pre- or post-increment and decrement operators should be used if possible.

Configuration

[format.rules]
"operators/increment-style" = true

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

Options

Name Type Allowed values Default Upstream name
style enum pre, post "pre" style

Replaces

More format/operators rules · Edit this page

Last updated on

Was this page helpful?