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

format/functions/single-line-throw

Not in any preset. Safe fix.

What it does

Throwing exception must be done in single line.

Configuration

[format.rules]
"functions/single-line-throw" = true

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

Replaces

More format/functions rules · Edit this page

Last updated on

Was this page helpful?