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

format/arrays/index-brace

In the format-laravel preset. Safe fix.

What it does

Array index should always be written by using square braces.

Configuration

[format.rules]
"arrays/index-brace" = 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?