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.
This commit is contained in:
Jon Parise
2024-07-18 09:17:14 -04:00
parent a2f0dbcecf
commit 8218a19421

9
.editorconfig Normal file
View File

@ -0,0 +1,9 @@
root = true
[*.{sh,bash}]
indent_size = 2
indent_style = space
[bash-preexec.sh]
indent_size = 4
indent_style = space