From 407fb8c7f0ddee55bd10999c9b7e78f8fec256c5 Mon Sep 17 00:00:00 2001 From: winston Date: Tue, 27 Sep 2022 02:41:54 +0200 Subject: [PATCH] chore: update .editorconfig --- .editorconfig | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/.editorconfig b/.editorconfig index a13612c..d86ac02 100644 --- a/.editorconfig +++ b/.editorconfig @@ -4,17 +4,31 @@ root = true - [*] -end_of_line = lf charset = utf-8 +indent_size = 2 +indent_style = space +end_of_line = lf insert_final_newline = true -indent_style = tabs -indent_size = 4 +trim_trailing_whitespace = true -[*.txt] +# go +[*.go] indent_style = tab indent_size = 4 -[*.{diff,md}] +# python +[*.{ini,py,py.tpl,rst}] +indent_size = 4 + +# rust +[*.rs] +indent_size = 4 + +# documentation, utils +[*.{md,mdx,diff}] trim_trailing_whitespace = false + +# windows shell scripts +[*.{cmd,bat,ps1}] +end_of_line = crlf