2 * @fileoverview A rule to disallow negated left operands of the `in` operator
3 * @author Michael Ficarra
8 //------------------------------------------------------------------------------
10 //------------------------------------------------------------------------------
12 module.exports = function(context) {
16 "BinaryExpression": function(node) {
17 if (node.operator === "in" && node.left.type === "UnaryExpression" && node.left.operator === "!") {
18 context.report(node, "The `in` expression's left operand is negated");