meta: set up editorconfig

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964b4f245552027208a2650c8d60fa557a4
This commit is contained in:
raf 2025-09-29 17:44:17 +03:00
commit adc2bb2baf
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

33
.editorconfig Normal file
View file

@ -0,0 +1,33 @@
root = true
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true
[*.c]
indent_style = space
indent_size = 2
tab_width = 2
[*.h]
indent_style = space
indent_size = 2
tab_width = 2
[Makefile]
indent_style = tab
tab_width = 4
trim_trailing_whitespace = false
[*.mk]
indent_style = tab
tab_width = 4
trim_trailing_whitespace = false
[*.sh]
indent_style = space
indent_size = 2
tab_width = 2