Create .editorconfig

I think it'd be a good idea to add an `.editorconfig` to the projects root for contributors to easily see the code-formatting style as is common with most Open Source projects.
This commit is contained in:
Christian Oliff 2019-07-31 00:35:29 +09:00 committed by Bjørn Erik Pedersen
parent fe33c2307f
commit 5875812ebf

20
.editorconfig Normal file
View File

@ -0,0 +1,20 @@
# https://editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
trim_trailing_whitespace = true
[*.go]
indent_size = 8
indent_style = tab
[*.js]
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false