diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 00000000..f2bc96b0
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,7 @@
+root = true
+
+[*.js]
+indent_size = 2
+insert_final_newline = true
+trim_trailing_whitespace = true
+
