add .editorconfig [skip ci]

This commit is contained in:
surtur 2022-08-05 16:29:27 +02:00
parent 5054a51fd7
commit a9dfe4cc6b
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

31
.editorconfig Normal file
View 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