add .editorconfig to unify coding style

This commit is contained in:
sunxyw
2022-03-28 18:18:59 +08:00
parent 4e9199c68e
commit acf570e652
2 changed files with 108 additions and 93 deletions

15
.editorconfig Normal file
View File

@@ -0,0 +1,15 @@
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
[*.md]
trim_trailing_whitespace = false
[*.{yml,yaml}]
indent_size = 2