False positive on switch 'no duplicate case' #3408
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
bug
ESLint is working incorrectly
rule
Relates to ESLint's core rules
In EcmaScript after the
case
token there can be any valid expression,in particular this switch was raising a false
no duplicate case
positive:in this case is because the getHash function does not handle ArrayExpression nodes;
the if else cascade exit without matching, so the function returns
undefined
.This happens for every node types that isn't checked.
The text was updated successfully, but these errors were encountered: