BlueGit

timfa frameworkv3

Allow indented switch case clauses in ESLint.

Match existing code style so CI indent checks pass on audio/input switches.

Co-authored-by: Cursor <cursoragent@cursor.com>

timfa Tim Falken · pushed by timfa

Authored 2026-08-10 · 3 months ago

Hash
1a15bdfad0bb6f6868f049c65d67de639f7e9d4c
Parent
36c138d3
1 file changed +1 −1
eslint.config.mjs +1 −1
@@ -15,7 +15,7 @@ export default [
15 15 "no-eval": "error", // Disallow the use of eval()
16 16 "no-multi-spaces": "error", // Disallow multiple spaces
17 17 "semi": ["error", "always"], // Require semicolons at the end of statements
18 "indent": ["error", "tab"], // Enforce consistent indentation with tabs
18 "indent": ["error", "tab", { SwitchCase: 1 }], // Tabs; indent case one level under switch
19 19 "prefer-const": "error", // Suggest using `const` if a variable is never reassigned
20 20 "no-mixed-spaces-and-tabs": ["error", "smart-tabs"] // Disallow mixed spaces and tabs, allow smart-tabs
21 21 }
@@ -15,7 +15,7 @@ export default [
15 "no-eval": "error", // Disallow the use of eval()
15 "no-eval": "error", // Disallow the use of eval()
16 "no-multi-spaces": "error", // Disallow multiple spaces
16 "no-multi-spaces": "error", // Disallow multiple spaces
17 "semi": ["error", "always"], // Require semicolons at the end of statements
17 "semi": ["error", "always"], // Require semicolons at the end of statements
18 "indent": ["error", "tab"], // Enforce consistent indentation with tabs
18 "indent": ["error", "tab", { SwitchCase: 1 }], // Tabs; indent case one level under switch
19 "prefer-const": "error", // Suggest using `const` if a variable is never reassigned
19 "prefer-const": "error", // Suggest using `const` if a variable is never reassigned
20 "no-mixed-spaces-and-tabs": ["error", "smart-tabs"] // Disallow mixed spaces and tabs, allow smart-tabs
20 "no-mixed-spaces-and-tabs": ["error", "smart-tabs"] // Disallow mixed spaces and tabs, allow smart-tabs
21 }
21 }