From 34e130465247f27ca89fae724be8f576a3d277d4 Mon Sep 17 00:00:00 2001 From: N3Cr0N Date: Tue, 12 Mar 2019 22:20:09 +0100 Subject: [PATCH] Update .editorconfig for more standards --- .editorconfig | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/.editorconfig b/.editorconfig index 22ceb20..4c82263 100644 --- a/.editorconfig +++ b/.editorconfig @@ -3,18 +3,33 @@ # top-most EditorConfig file root = true -# Unix-style newlines with a newline ending every file [*] end_of_line = lf +charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true -# Matches multiple files with brace expansion notation -[*] +# Space in JavaScript +[**.js] +indent_style = space +indent_size = 2 -# Set default charset -charset = utf-8 +# Tabs in Less +[**.less] +indent_style = tab +indent_size = 2 + +# Tabs in CSS +[**.css] +indent_style = tab +indent_size = 2 +# Space in PHP [**.php] indent_style = space -indent_size = 4 \ No newline at end of file +indent_size = 4 + +# Tabs in HTML +[**.html] +indent_style = tab +indent_size = 2