Add .editorconfig

Change-Id: I490b4e17636fc58f2ad2dd62b2f14e986a9b8cd2
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..624ad9b
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,28 @@
+root = true
+
+[*]
+charset = utf-8
+end_of_line = lf
+insert_final_newline = true
+
+[*.{cpp,hpp}]
+indent_style = space
+indent_size = 2
+trim_trailing_whitespace = true
+
+[{*.{py,sh},.jenkins,wscript}]
+indent_style = space
+indent_size = 4
+trim_trailing_whitespace = true
+
+[*.md]
+indent_style = space
+trim_trailing_whitespace = false
+
+[*.rst]
+indent_style = space
+trim_trailing_whitespace = true
+
+[*.{yaml,yml}]
+indent_style = space
+indent_size = 2