fix: 添加 .gitattributes 和 .editorconfig 统一换行符规则

This commit is contained in:
zjf committed 2025-10-11 12:57:35 +08:00
1 parent 2dbce0a362
commit c2bc13b5d6
3 files changed
+61 -1

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
# EditorConfig is awesome: https://EditorConfig.org
# 表示是最顶层的配置文件
root = true
# 对所有文件生效
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
# 对 JS、TS、Vue 文件的配置
[*.{js,jsx,ts,tsx,vue}]
indent_style = tab
indent_size = 2
# 对 JSON、YAML 文件的配置
[*.{json,yml,yaml}]
indent_style = tab
indent_size = 2
# 对 Markdown 文件的配置
[*.md]
trim_trailing_whitespace = false