no-nested-ternary Disallow nested ternary expressions A ternary nested directly inside another ternary forces multiple conditions and results into a grouping determined by operator associativity. Instead, you SHOULD use explicit control flow for each condition and result. - Category: style - Level: warning - Fix: none - Scope: module Reported function classify(value: int32): string { return value > 0 ? "positive" : value < 0 ? "negative" : "zero"; } Accepted function classify(value: int32): string { if (value > 0) { return "positive"; } if (value < 0) { return "negative"; } return "zero"; } Prior art - ESLint ยท no-nested-ternary language/linter/src/rules/style/nonestedternary.rs:6