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 <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser 2026-02-15 19:35:27 +01:00
parent d4ec54a461
commit 38939040e5
No known key found for this signature in database

View file

@ -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",