From 8218a194212821b36420d88aaa34740716e917d4 Mon Sep 17 00:00:00 2001 From: Jon Parise Date: Thu, 18 Jul 2024 09:17:14 -0400 Subject: [PATCH] editorconfig: indent styles for shell scripts We're consistently using 2-space indentation in our shell scripts with the exception of bash-prefix.sh, which is a vendored script uses 4-space indentation (https://github.com/rcaloras/bash-preexec). Add editorconfig rules to help maintain this consistency going forward. --- .editorconfig | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..58e3649ad --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*.{sh,bash}] +indent_size = 2 +indent_style = space + +[bash-preexec.sh] +indent_size = 4 +indent_style = space