meta: add editorconfig

This commit is contained in:
raf 2024-07-21 23:51:28 +03:00
parent 72638aeb58
commit 342fb2e7cb
Signed by: NotAShelf
GPG key ID: AF26552424E53993

29
.editorconfig Normal file
View file

@ -0,0 +1,29 @@
root = true
[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 4
insert_final_newline = true
tab_width = 4
trim_trailing_whitespace = true
[*.md]
indent_style = space
indent_size = 2
trim_trailing_whitespace = false
[*.{nix,sh,yml,yaml}]
indent_style = space
indent_size = 2
tab_width = 2
[*.{lock,diff,patch}]
indent_style = unset
indent_size = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
end_of_line = unset