---
source: crates/oxc_linter/src/tester.rs
expression: no_unsafe_negation
---
  ⚠ Unexpected logical not in the left hand side of 'in' operator
   ╭─[no_unsafe_negation.tsx:1:1]
 1 │ !a in b
   · ──
   ╰────
  help: use parenthesis to express the negation of the whole boolean expression, as '!' binds more closely than 'in'

  ⚠ Unexpected logical not in the left hand side of 'in' operator
   ╭─[no_unsafe_negation.tsx:1:1]
 1 │ (!a in b)
   ·  ──
   ╰────
  help: use parenthesis to express the negation of the whole boolean expression, as '!' binds more closely than 'in'

  ⚠ Unexpected logical not in the left hand side of 'in' operator
   ╭─[no_unsafe_negation.tsx:1:1]
 1 │ !(a) in b
   · ────
   ╰────
  help: use parenthesis to express the negation of the whole boolean expression, as '!' binds more closely than 'in'

  ⚠ Unexpected logical not in the left hand side of 'instanceof' operator
   ╭─[no_unsafe_negation.tsx:1:1]
 1 │ !a instanceof b
   · ──
   ╰────
  help: use parenthesis to express the negation of the whole boolean expression, as '!' binds more closely than 'instanceof'

  ⚠ Unexpected logical not in the left hand side of 'instanceof' operator
   ╭─[no_unsafe_negation.tsx:1:1]
 1 │ (!a instanceof b)
   ·  ──
   ╰────
  help: use parenthesis to express the negation of the whole boolean expression, as '!' binds more closely than 'instanceof'

  ⚠ Unexpected logical not in the left hand side of 'instanceof' operator
   ╭─[no_unsafe_negation.tsx:1:1]
 1 │ !(a) instanceof b
   · ────
   ╰────
  help: use parenthesis to express the negation of the whole boolean expression, as '!' binds more closely than 'instanceof'

  ⚠ Unexpected logical not in the left hand side of '<' operator
   ╭─[no_unsafe_negation.tsx:1:1]
 1 │ if (! a < b) {}
   ·     ───
   ╰────
  help: use parenthesis to express the negation of the whole boolean expression, as '!' binds more closely than '<'

  ⚠ Unexpected logical not in the left hand side of '>' operator
   ╭─[no_unsafe_negation.tsx:1:1]
 1 │ while (! a > b) {}
   ·        ───
   ╰────
  help: use parenthesis to express the negation of the whole boolean expression, as '!' binds more closely than '>'

  ⚠ Unexpected logical not in the left hand side of '<=' operator
   ╭─[no_unsafe_negation.tsx:1:1]
 1 │ foo = ! a <= b;
   ·       ───
   ╰────
  help: use parenthesis to express the negation of the whole boolean expression, as '!' binds more closely than '<='

  ⚠ Unexpected logical not in the left hand side of '>=' operator
   ╭─[no_unsafe_negation.tsx:1:1]
 1 │ foo = ! a >= b;
   ·       ───
   ╰────
  help: use parenthesis to express the negation of the whole boolean expression, as '!' binds more closely than '>='

  ⚠ Unexpected logical not in the left hand side of '<=' operator
   ╭─[no_unsafe_negation.tsx:1:1]
 1 │ ! a <= b
   · ───
   ╰────
  help: use parenthesis to express the negation of the whole boolean expression, as '!' binds more closely than '<='


