From 72a50e37db6a2e2da82bec08d1c2a3ec601a1405 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20Kov=C3=A1cs?= Date: Tue, 12 Jan 2021 21:54:33 +0100 Subject: [PATCH] Created .editorconfig Editorconfig is more or less standard now to enforce coding style. It might be a good idea to have one in the project, reflecting GO defaults while also using the industry standard / recommended settings for other files that are very likely to be included in a GO project. --- .editorconfig | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..e90e11a --- /dev/null +++ b/.editorconfig @@ -0,0 +1,22 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[{*.go,Makefile,.gitmodules,go.mod,go.sum}] +indent_style = tab + +[*.md] +indent_style = tab +trim_trailing_whitespace = false + +[*.{yml,yaml,json}] +indent_style = space +indent_size = 2 + +[*.{js,jsx,ts,tsx,css,less,sass,scss,vue,py}] +indent_style = space +indent_size = 4