diff --git a/.editorconfig b/.editorconfig index 79a12ffa6..dccf841d4 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,12 +1,19 @@ root = true -[*.{js,ts,vue}] -charset = utf-8 # 设置文件字符集为 utf-8 -end_of_line = lf # 控制换行类型(lf | cr | crlf) -insert_final_newline = true # 始终在文件末尾插入一个新行 -indent_style = space # 缩进风格(tab | space) -indent_size = 2 # 缩进大小 -max_line_length = 100 # 最大行长度 - -[*.md] # 仅 md 文件适用以下规则 -max_line_length = off # 关闭最大行长度限制 -trim_trailing_whitespace = false # 关闭末尾空格修剪 + +[*] +charset=utf-8 +end_of_line=lf +insert_final_newline=true +indent_style=space +indent_size=2 +max_line_length = 100 + +[*.{yml,yaml,json}] +indent_style = space +indent_size = 2 + +[*.md] +trim_trailing_whitespace = false + +[Makefile] +indent_style = tab