summaryrefslogtreecommitdiffstats
path: root/.editorconfig
diff options
context:
space:
mode:
authorAndrey Nering <andrey.nering@gmail.com>2016-08-29 22:05:44 -0300
committer无闻 <u@gogs.io>2016-08-29 18:05:44 -0700
commit9f44c267899fabd0b180cdf6cd41e6d77b2fb423 (patch)
tree2bd592dffa5e6f6451b4f28ca6629d754141dd38 /.editorconfig
parent3738b6399eb360fef3f987e8cb9d0121f080ed61 (diff)
downloadgitea-9f44c267899fabd0b180cdf6cd41e6d77b2fb423.tar.gz
gitea-9f44c267899fabd0b180cdf6cd41e6d77b2fb423.zip
Update .editorconfig (#3534)
[CI SKIP]
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig11
1 files changed, 10 insertions, 1 deletions
diff --git a/.editorconfig b/.editorconfig
index 75ba9dacb5..18fd08dbcd 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -5,8 +5,17 @@ root = true
[*]
charset = utf-8
end_of_line = lf
+insert_final_newline = true
+trim_trailing_whitespace = true
+
+[*.{go,tmpl}]
indent_style = tab
+indent_size = 4
-[*.yml]
+[*.{less,yml}]
indent_style = space
indent_size = 2
+
+[*.js]
+indent_style = space
+indent_size = 4