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

lint/style/no-short-ternary

In the coding-style set. Report only. Upstream gates: strictRules.disallowedShortTernary.

What it does

Detects the use of the shorthand ternary and elvis operators.

Configuration

[lint.rules]
"style/no-short-ternary" = "error"

To skip it in some files or lines, add an override or an ignore comment.

Replaces

Linked rules

More lint/style rules · Edit this page

Last updated on

Was this page helpful?