chore(format): 统一换行为 LF 并修正 editorconfig 注释

- prettier 由 auto 改为 lf,仓库统一 LF
- editorconfig 的行尾注释改为独立行,规范下行尾注释会被当作值
This commit is contained in:
Ray.Hao committed 2026-11-08 00:40:57 +08:00
1 parent 89734a909e
commit 82a67ecef7
2 files changed
+9 -11

No files matched your search

+7 -9
View File
@@ -1,15 +1,13 @@
# http://editorconfig.org
root = true
# 表示所有文件适用
[*]
charset = utf-8 # 设置文件字符集为 utf-8
end_of_line = lf # 控制换行类型(lf | cr | crlf)
indent_style = space # 缩进风格(tab | space)
indent_size = 2 # 缩进大小
insert_final_newline = true # 始终在文件末尾插入一个新行
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
# 表示仅 md 文件适用以下规则
[*.md]
max_line_length = off # 关闭最大行长度限制
trim_trailing_whitespace = false # 关闭末尾空格修剪
max_line_length = off
trim_trailing_whitespace = false
+2 -2
View File
@@ -32,8 +32,8 @@ trailingComma: "all"
useTabs: false
# Vue 文件中的 <script> 和 <style> 不增加额外的缩进
vueIndentScriptAndStyle: false
# 根据系统自动检测换行符
endOfLine: "auto"
# 统一输出 LF 换行
endOfLine: "lf"
# 对 HTML 文件应用特定格式化规则
overrides:
- files: "*.html"