From e69efe6f621ada5e49b2925f92e9f060e9db7628 Mon Sep 17 00:00:00 2001 From: Max Pozdeev Date: Fri, 14 Jan 2022 22:43:37 +0300 Subject: [PATCH] little updates in .editorconfig --- .editorconfig | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.editorconfig b/.editorconfig index 1aaacc9..af6284b 100644 --- a/.editorconfig +++ b/.editorconfig @@ -6,11 +6,20 @@ root = true [*] charset = utf-8 end_of_line = lf -indent_style = tab +# tab_width here used only to represent tabs if indent_size is not set tab_width = 4 trim_trailing_whitespace = true insert_final_newline = true +# temporary. spaces will be used later. +[*.{php,js}] +indent_style = tab +tab_width = 4 + +[*.{css,yml,html}] +indent_style = space +indent_size = 2 + [*.php] insert_final_newline = false @@ -18,16 +27,9 @@ insert_final_newline = false trim_trailing_whitespace = false insert_final_newline = false -[*.css] -indent_style = space -indent_size = 2 - [/version.txt] insert_final_newline = false -[*.yml] -indent_style = space - [/src/content/themes/*/index.php] indent_style = space indent_size = 2