From 97cabf39cdfedb995abb435e11f2c67d33759e57 Mon Sep 17 00:00:00 2001 From: silverwind Date: Sun, 17 May 2020 16:14:36 +0200 Subject: [PATCH] Change tab width for .go files to 4 (#11455) * Change tab width for .go files to 4 I thing 8-wide tabs are kind of archaic and inconsisten with template files which already use 4-wide. Also did some misc cleanups in the .editorconfig files. * add css Co-authored-by: Lauris BH --- .editorconfig | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.editorconfig b/.editorconfig index 15a88a14eb..5b3a4ff79f 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,4 +1,3 @@ -# http://editorconfig.org root = true [*] @@ -10,23 +9,15 @@ end_of_line = lf [*.md] trim_trailing_whitespace = false -[*.go] -indent_style = tab -indent_size = 8 - -[*.{tmpl,html}] +[*.{go,tmpl,html}] indent_style = tab indent_size = 4 -[*.less] +[*.{less,css}] indent_style = space indent_size = 4 -[*.{yml,json}] -indent_style = space -indent_size = 2 - -[*.js] +[*.{js,json,yml}] indent_style = space indent_size = 2