chore: 修改格式化文件配置

This commit is contained in:
Olia Lisa
2026-07-20 15:36:42 +08:00
parent b16f6dea0d
commit d85371db37
+10 -18
View File
@@ -1,33 +1,25 @@
# EditorConfig is awesome: https://EditorConfig.org # EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file # 根目录配置文件
root = true root = true
# Unix-style newlines with a newline ending every file
# 默认规则
[*] [*]
charset = utf-8
end_of_line = lf end_of_line = lf
insert_final_newline = true 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 # Shell scripts
[*.py] [*.sh]
indent_style = space indent_style = space
indent_size = 4 indent_size = 4
# Tab indentation (no size specified)
[Makefile]
indent_style = tab
# Indentation override for all JS under lib directory # Markdown documents
[lib/**.js] [*.md]
indent_style = space
indent_size = 2
# Matches the exact files either package.json or .travis.yml
[{package.json,.travis.yml}]
indent_style = space indent_style = space
indent_size = 2 indent_size = 2
trim_trailing_whitespace = false