I'm having difficulty understand the no-confusing-arrow rule.

The example of the rule from the rule doc page is:

// The intent is not clearvar x = a => 1 ? 2 : 3// Did the author mean thisvar 
x = function (a) { return a >= 1 ? 2 : 3 }// Or thisvar x = a <= 1 ? 2 : 3



My understanding of the first example is that it would be interpreted as 

var x = function x(a) {
  return 1 ? 2 : 3;
};


Which isn't the same as the two possible interpretations given here.


Am I missing something here?

-- 
You received this message because you are subscribed to the Google Groups 
"ESLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to