---
source: crates/oxc_linter/src/tester.rs
expression: no_ternary
---
  ⚠ eslint(no-ternary): Unexpected use of ternary expression
   ╭─[no_ternary.tsx:1:11]
 1 │ var foo = true ? thing : stuff;
   ·           ────────────────────
   ╰────
  help: Do not use the ternary expression.

  ⚠ eslint(no-ternary): Unexpected use of ternary expression
   ╭─[no_ternary.tsx:1:1]
 1 │ true ? thing() : stuff();
   · ────────────────────────
   ╰────
  help: Do not use the ternary expression.

  ⚠ eslint(no-ternary): Unexpected use of ternary expression
   ╭─[no_ternary.tsx:1:28]
 1 │ function foo(bar) { return bar ? baz : qux; }
   ·                            ───────────────
   ╰────
  help: Do not use the ternary expression.
