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

format/comments/single-line-style

In the format-laravel preset. Safe fix.

What it does

Single-line comments and multi-line comments with only one line of actual content should use the // syntax.

Configuration

[format.rules]
"comments/single-line-style" = true

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

Options

Name Type Allowed values Default Upstream name
comment-types list asterisk, hash ["asterisk", "hash"] comment_types

Replaces

More format/comments rules · Edit this page

Last updated on

Was this page helpful?