summaryrefslogtreecommitdiffstats
path: root/src/tools/rust-analyzer/.editorconfig
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rust-analyzer/.editorconfig')
-rw-r--r--src/tools/rust-analyzer/.editorconfig19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/.editorconfig b/src/tools/rust-analyzer/.editorconfig
new file mode 100644
index 000000000..314f79d3f
--- /dev/null
+++ b/src/tools/rust-analyzer/.editorconfig
@@ -0,0 +1,19 @@
+# https://EditorConfig.org
+root = true
+
+[*]
+charset = utf-8
+trim_trailing_whitespace = true
+end_of_line = lf
+insert_final_newline = true
+indent_style = space
+
+[*.{rs,toml}]
+indent_size = 4
+
+[*.ts]
+indent_size = 4
+[*.js]
+indent_size = 4
+[*.json]
+indent_size = 4