---
source: crates/oxc_linter/src/tester.rs
---
  ⚠ oxc(double-comparisons): Unexpected double comparisons.
   ╭─[double_comparisons.tsx:1:1]
 1 │ x == y || x < y
   · ───────────────
   ╰────
  help: This logical expression can be simplified. Try using the `<=` operator instead.

  ⚠ oxc(double-comparisons): Unexpected double comparisons.
   ╭─[double_comparisons.tsx:1:1]
 1 │ x < y || x == y
   · ───────────────
   ╰────
  help: This logical expression can be simplified. Try using the `<=` operator instead.

  ⚠ oxc(double-comparisons): Unexpected double comparisons.
   ╭─[double_comparisons.tsx:1:1]
 1 │ x == y || x > y
   · ───────────────
   ╰────
  help: This logical expression can be simplified. Try using the `>=` operator instead.

  ⚠ oxc(double-comparisons): Unexpected double comparisons.
   ╭─[double_comparisons.tsx:1:1]
 1 │ x > y || x == y
   · ───────────────
   ╰────
  help: This logical expression can be simplified. Try using the `>=` operator instead.

  ⚠ oxc(double-comparisons): Unexpected double comparisons.
   ╭─[double_comparisons.tsx:1:1]
 1 │ x < y || x > y
   · ──────────────
   ╰────
  help: This logical expression can be simplified. Try using the `!=` operator instead.

  ⚠ oxc(double-comparisons): Unexpected double comparisons.
   ╭─[double_comparisons.tsx:1:1]
 1 │ x > y || x < y
   · ──────────────
   ╰────
  help: This logical expression can be simplified. Try using the `!=` operator instead.

  ⚠ oxc(double-comparisons): Unexpected double comparisons.
   ╭─[double_comparisons.tsx:1:1]
 1 │ x <= y && x >= y
   · ────────────────
   ╰────
  help: This logical expression can be simplified. Try using the `==` operator instead.

  ⚠ oxc(double-comparisons): Unexpected double comparisons.
   ╭─[double_comparisons.tsx:1:1]
 1 │ x >= y && x <= y
   · ────────────────
   ╰────
  help: This logical expression can be simplified. Try using the `==` operator instead.

  ⚠ oxc(double-comparisons): Unexpected double comparisons.
   ╭─[double_comparisons.tsx:1:1]
 1 │ x === y || x < y
   · ────────────────
   ╰────
  help: This logical expression can be simplified. Try using the `<=` operator instead.

  ⚠ oxc(double-comparisons): Unexpected double comparisons.
   ╭─[double_comparisons.tsx:1:1]
 1 │ x < y || x === y
   · ────────────────
   ╰────
  help: This logical expression can be simplified. Try using the `<=` operator instead.

  ⚠ oxc(double-comparisons): Unexpected double comparisons.
   ╭─[double_comparisons.tsx:1:1]
 1 │ x === y || x > y
   · ────────────────
   ╰────
  help: This logical expression can be simplified. Try using the `>=` operator instead.

  ⚠ oxc(double-comparisons): Unexpected double comparisons.
   ╭─[double_comparisons.tsx:1:1]
 1 │ x > y || x === y
   · ────────────────
   ╰────
  help: This logical expression can be simplified. Try using the `>=` operator instead.
