From 38939040e58e1aaa49ea1eb550a0123ef0bfd0c3 Mon Sep 17 00:00:00 2001 From: Ralph Sennhauser Date: Sun, 15 Feb 2026 19:35:27 +0100 Subject: [PATCH] Set indent value for switch statement Old and documented default is 0, tho the implementation changed at some point to 1 in it's default config. As such explicitly set it to 0 so it stays as is independent of stylistic version. Signed-off-by: Ralph Sennhauser --- eslint.config.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index dc829911aa..b9f66d61f2 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -124,7 +124,7 @@ const configStylistic = { "rules": { "@stylistic/brace-style": ["warn", "allman", { "allowSingleLine": true }], "@stylistic/comma-spacing": "warn", - "@stylistic/indent": ["warn", "tab", { "outerIIFEBody": "off" }], + "@stylistic/indent": ["warn", "tab", { "SwitchCase": 0, "outerIIFEBody": "off" }], "@stylistic/key-spacing": "warn", "@stylistic/keyword-spacing": ["warn", { "before": true, "after": true }], "@stylistic/new-parens": "warn",