From 2ed1ebff886a3df2d0d62b4eab6a87eea62ddc9b Mon Sep 17 00:00:00 2001 From: "melodic-standards-sync[bot]" <300666570+melodic-standards-sync[bot]@users.noreply.github.com> Date: Tue, 6 Oct 2026 03:20:15 +0000 Subject: [PATCH] chore: sync standards components (629e1276cf75636d304f0e0f2ebdbee049941471) --- .editorconfig | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index f4b81c1..633a9ce 100644 --- a/.editorconfig +++ b/.editorconfig @@ -41,9 +41,18 @@ indent_size = 2 indent_style = unset indent_size = unset -# Shell +# Shell: shfmt reads this section, and its switch_case_indent default (false) +# would move every indented `case` branch one level left on any edit. [*.{sh,bash}] indent_size = 2 +switch_case_indent = true + +# Extensionless shebang scripts (e.g. vault-exec): `[[shell]]` is a shfmt +# extension, outside the EditorConfig spec, that matches any file shfmt detects +# as shell (bash included). Editors that do not know it match nothing here. +[[shell]] +indent_size = 2 +switch_case_indent = true # Windows batch: cmd.exe requires CRLF. [*.{cmd,bat}]