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>
@@ -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 spaces16
"no-multi-spaces": "error", // Disallow multiple spaces17
"semi": ["error", "always"], // Require semicolons at the end of statements17
"semi": ["error", "always"], // Require semicolons at the end of statements18
"indent": ["error", "tab"], // Enforce consistent indentation with tabs18
"indent": ["error", "tab", { SwitchCase: 1 }], // Tabs; indent case one level under switch19
"prefer-const": "error", // Suggest using `const` if a variable is never reassigned19
"prefer-const": "error", // Suggest using `const` if a variable is never reassigned20
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"] // Disallow mixed spaces and tabs, allow smart-tabs20
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"] // Disallow mixed spaces and tabs, allow smart-tabs21
}21
}