default-case-last Require the default switch case last A default case followed by another case makes the switch order harder to scan and permits unusual fallthrough from the fallback body. Instead, you SHOULD place the default case last. - Category: style - Level: warning - Fix: none - Scope: module Reported function classify(value: int32): string { switch (value) { default: return "other"; case 1: return "one"; } } Accepted function classify(value: int32): string { switch (value) { case 1: return "one"; default: return "other"; } } Prior art - ESLint ยท default-case-last language/linter/src/rules/style/defaultcaselast.rs:6