diff --git a/.editorconfig b/.editorconfig
index 087559332a7cf8a74555548aa737e72db6118716..1a71ebf75dc8e9eda0690f4d8d7c649786c4b949 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -1,13 +1,15 @@
-root = true
-
 [*]
 indent_style = spaces
 insert_final_newline = true
 charset = utf-8
 trim_trailing_whitespace = true
 insert_final_newline = true
+indent_size = 4
 
 [*.md]
 trim_trailing_whitespace = false
 indent_style = spaces
-indent_size = 4
+
+[*.{json,yml,toml}]
+indent_style = space
+indent_size = 2