1 # disallow negated conditions (no-negated-condition)
3 Negated conditions are more difficult to understand. Code can be made more readable by inverting the condition instead.
7 This rule disallows negated conditions in either of the following:
9 * `if` statements which have an `else` branch
12 Examples of **incorrect** code for this rule:
15 /*eslint no-negated-condition: "error"*/
38 Examples of **correct** code for this rule:
41 /*eslint no-negated-condition: "error"*/