chore: add .editorconfig for consistent code formatting

Enforce consistent 4-space indentation for C source files
and proper line ending handling.
This commit is contained in:
Srikanth Patchava 2026-04-24 19:41:17 -07:00 committed by Srikanth Patchava
parent a8c9d35152
commit 2c9a217e87
No known key found for this signature in database
GPG key ID: B904FC2A60B7438D

21
.editorconfig Normal file
View file

@ -0,0 +1,21 @@
root = true
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
[*.{c,h,cpp,hpp}]
indent_style = space
indent_size = 4
[*.{yml,yaml}]
indent_style = space
indent_size = 2
[*.md]
trim_trailing_whitespace = false
[Makefile]
indent_style = tab