add .editorconfig

This commit is contained in:
leo 2023-03-09 16:45:44 +01:00
parent 20258c3432
commit 8edea6262f
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

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