no-duplicate-else-if Disallow else-if conditions made unreachable by earlier conditions An else-if condition that implies an earlier condition can never select its body. Instead, you SHOULD remove the unreachable branch or correct the conditions so each branch can be selected. - Category: suspicious - Level: warning - Fix: none - Scope: module Reported function classify(value: int32): string { if (value > 0) { return "positive"; } else if (value > 0 && value < 10) { return "small"; } return "other"; } Accepted function classify(value: int32): string { if (value > 0 && value < 10) { return "small"; } else if (value > 0) { return "positive"; } return "other"; } Prior art - ESLint ยท no-dupe-else-if language/linter/src/rules/suspicious/noduplicateelseif.rs:7