style: add formatter config

This commit is contained in:
ZhenShuo Leo
2025-05-28 06:22:24 +08:00
parent 0b06a64139
commit e785f50575
6 changed files with 112 additions and 2 deletions

10
.editorconfig Normal file
View File

@@ -0,0 +1,10 @@
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2
[*.md]
trim_trailing_whitespace = false