aboutsummaryrefslogtreecommitdiff
path: root/.editorconfig
diff options
context:
space:
mode:
authorsilverwind2020-05-17 16:14:36 +0200
committerGitHub2020-05-17 17:14:36 +0300
commit97cabf39cdfedb995abb435e11f2c67d33759e57 (patch)
tree76778c3be90cb3e114d4cf1c2e574bc51300d96c /.editorconfig
parent4e302baa4ccce2c46b16d8c7aabb1c34428bebc3 (diff)
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 <lauris@nix.lv>
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig15
1 files changed, 3 insertions, 12 deletions
diff --git a/.editorconfig b/.editorconfig
index 15a88a14e..5b3a4ff79 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