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

+33
View File
@@ -0,0 +1,33 @@
# 设置默认行为,以防人们没有设置 core.autocrlf
* text=auto
# 明确声明你想要始终规范化并在检出时转换为原生行结束符的文本文件
*.vue text eol=lf
*.js text eol=lf
*.ts text eol=lf
*.jsx text eol=lf
*.tsx text eol=lf
*.json text eol=lf
*.css text eol=lf
*.scss text eol=lf
*.sass text eol=lf
*.html text eol=lf
*.htm text eol=lf
*.xml text eol=lf
*.md text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
# 明确声明你不想规范化并希望原样保留的文件
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.svg binary
*.eot binary
*.ttf binary
*.woff binary
*.woff2 binary
*.otf binary