From 1d1e09e731e42ddd92817ba8a90cb76886bf0599 Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 12 Apr 2023 23:14:21 +0200 Subject: [PATCH] update .editorconfig [skip ci] --- .editorconfig | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.editorconfig b/.editorconfig index 3638f5e..618aa3f 100644 --- a/.editorconfig +++ b/.editorconfig @@ -3,9 +3,20 @@ root = true [*] charset = utf-8 end_of_line = lf +trim_trailing_whitespace = true +insert_final_newline = true # go files (excluding templates) [*.{go,mod,sum}] indent_style = tab indent_size = 4 tab_width = 4 + +# go html templates +[*.tmpl] +indent_style = tab +indent_size = 2 +tab_width = 2 + +[Makefile] +indent_style = tab