Add .editorconfig 71/49571/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Tue, 20 Dec 2016 01:54:32 +0000 (20:54 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Tue, 20 Dec 2016 01:55:50 +0000 (20:55 -0500)
Seems like a standard way to share a config across multiple editors.
http://editorconfig.org/

Change-Id: Ib8363a38fe09bc11f4319f0a47c3b9e8d04c12fa
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
.editorconfig [new file with mode: 0644]

diff --git a/.editorconfig b/.editorconfig
new file mode 100644 (file)
index 0000000..5eb4e67
--- /dev/null
@@ -0,0 +1,25 @@
+root = true
+
+[*]
+end_of_line = lf
+insert_final_newline = true
+trim_trailing_whitespace = true
+indent_style = space
+
+[*.json]
+indent_size = 2
+
+[*.rst]
+indent_size = 4
+
+[*.markdown]
+indent_size = 4
+max_line_length = 80
+
+[*.sh]
+indent_size = 4
+max_line_length = 80
+
+[*.yaml]
+indent_size = 4
+