add .editorconfig [skip ci]

This commit is contained in:
surtur 2022-08-05 16:29:27 +02:00
parent 989e2796fe
commit 56e978ac28
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

31
.editorconfig Normal file

@ -0,0 +1,31 @@
root = true
[*]
charset = utf-8
end_of_line = lf
# starlark
[*.star]
indent_style = tab
indent_size = 4
tab_width = 4
# go files (excluding templates)
[*.{go,mod,sum}]
indent_style = tab
indent_size = 4
tab_width = 4
[*.nix]
indent_style = space
indent_size = 2
[*.svg]
insert_final_newline = false
[*.md]
trim_trailing_whitespace = false
[*.{yaml,yml}]
indent_style = space
indent_size = 2