# switch-case-break-position πŸ“ Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses. πŸ’ΌπŸš« This rule is enabled in the βœ… `recommended` [config](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config). This rule is _disabled_ in the β˜‘οΈ `unopinionated` [config](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config). πŸ”§ This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix). Enforce that terminating statements (`break`, `return`, `continue`, `throw`) appear inside the block statement of a `case` clause, not after it. This can happen when refactoring β€” for example, removing an `if` wrapper but leaving the `break` outside the braces. `break` and `continue` are auto-fixed. `return` and `throw` are still reported, but are left for manual fixes because moving them into the block can change lexical binding resolution. ## Examples ```js // ❌ switch(foo) { case 1: { doStuff(); } break; } // βœ… switch(foo) { case 1: { doStuff(); break; } } ```