summaryrefslogtreecommitdiff
path: root/.editorconfig
diff options
context:
space:
mode:
authorAlbert Krewinkel <tarleb@moltkeplatz.de>2014-04-09 15:45:08 +0200
committerAlbert Krewinkel <tarleb@moltkeplatz.de>2014-04-09 16:11:14 +0200
commit5b9f9047a02f96daf5215bfd4d1cd376ef4186c3 (patch)
tree9d5665dd5fc61bf1c1c10b224584107287e2b776 /.editorconfig
parente555a5703d4581f11c6b5020811bf60b5ec98c41 (diff)
Add .editorconfig
Use EditorConfig to define a some basic styling rules for code. This should also help to reduce the number of commits introducing trailing whitespace. See http://editorconfig.org/ for details.
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig12
1 files changed, 12 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 000000000..9c562bd1f
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,12 @@
+root = true
+
+[*]
+charset = utf-8
+end_of_line = lf
+indent_style = space
+indent_size = 2
+insert_final_newline = true
+trim_trailing_whitespace = true
+
+[*.{markdown,md}]
+trim_trailing_whitespace = false