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

format/operators/new-expression-parentheses

Not in any preset. Safe fix.

What it does

All new expressions with a further call must (not) be wrapped in parentheses.

Configuration

[format.rules]
"operators/new-expression-parentheses" = true

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

Options

Name Type Allowed values Default Upstream name
use-parentheses bool Any false use_parentheses

Replaces

More format/operators rules · Edit this page

Last updated on

Was this page helpful?