Add EditorConfig file

EditorConfig (https://editorconfig.org) is a dotfile which stores
configuration that is supported by a wide variety of text editors and
IDEs both natively and with plugins. This allows us to enforce project
standards such as line endings and indentation style.

Signed-off-by: Charlie Jonas <charlie@charliejonas.co.uk>
This commit is contained in:
Charlie Jonas 2020-10-08 17:12:42 +01:00 committed by GitHub
parent 671c40f29a
commit fe82a40fcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

16
.editorconfig Normal file
View File

@ -0,0 +1,16 @@
# https://editorconfig.org
root = true
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
indent_style = space
[Makefile]
indent_style = tab
[*.go]
indent_style = tab