add editor config file

This commit is contained in:
MaysWind
2020-10-17 16:57:33 +08:00
parent f9c50940d8
commit e5953c9f17
+26
View File
@@ -0,0 +1,26 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org
root = true
[*]
# change these settings to your own preference
indent_style = space
indent_size = 4
# we recommend you to keep these unchanged
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.go]
indent_style = tab
indent_size = 4
[package.json]
indent_style = space
indent_size = 2