From d85371db373cf56202cfe60c837b5e7a8450a7b3 Mon Sep 17 00:00:00 2001 From: Olia Lisa Date: Mon, 20 Jul 2026 15:36:42 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E6=94=B9=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E5=8C=96=E6=96=87=E4=BB=B6=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .editorconfig | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/.editorconfig b/.editorconfig index f5c89b5..14b44f0 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,33 +1,25 @@ # EditorConfig is awesome: https://EditorConfig.org -# top-most EditorConfig file +# 根目录配置文件 root = true -# Unix-style newlines with a newline ending every file + +# 默认规则 [*] +charset = utf-8 end_of_line = lf insert_final_newline = true +trim_trailing_whitespace = true -# Matches multiple files with brace expansion notation -# Set default charset -[*.{js,py}] -charset = utf-8 -# 4 space indentation -[*.py] +# Shell scripts +[*.sh] indent_style = space indent_size = 4 -# Tab indentation (no size specified) -[Makefile] -indent_style = tab -# Indentation override for all JS under lib directory -[lib/**.js] -indent_style = space -indent_size = 2 - -# Matches the exact files either package.json or .travis.yml -[{package.json,.travis.yml}] +# Markdown documents +[*.md] indent_style = space indent_size = 2 +trim_trailing_whitespace = false \ No newline at end of file