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

format/strings/single-quote

In the format-laravel preset. Safe fix.

What it does

Convert double quotes to single quotes for simple strings.

Configuration

[format.rules]
"strings/single-quote" = true

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

Options

Name Type Allowed values Default Upstream name
strings-containing-single-quote-chars bool Any false strings_containing_single_quote_chars

Replaces

More format/strings rules · Edit this page

Last updated on

Was this page helpful?