chore: add encoding config to prevent Chinese garbled text (.editorconfig, .gitattributes)
This commit is contained in:
37
.gitattributes
vendored
Normal file
37
.gitattributes
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
# 设置默认行为,防止自动转换导致问题
|
||||
* text=auto
|
||||
|
||||
# TypeScript/JavaScript 文件
|
||||
*.ts text eol=lf
|
||||
*.tsx text eol=lf
|
||||
*.js text eol=lf
|
||||
*.jsx text eol=lf
|
||||
*.json text eol=lf
|
||||
|
||||
# 配置文件
|
||||
*.yaml text eol=lf
|
||||
*.yml text eol=lf
|
||||
.editorconfig text eol=lf
|
||||
.gitattributes text eol=lf
|
||||
.gitignore text eol=lf
|
||||
|
||||
# Markdown 文档
|
||||
*.md text eol=lf
|
||||
|
||||
# Shell 脚本
|
||||
*.sh text eol=lf
|
||||
|
||||
# Windows 脚本
|
||||
*.bat text eol=crlf
|
||||
*.ps1 text eol=crlf
|
||||
|
||||
# 二进制文件
|
||||
*.png binary
|
||||
*.jpg binary
|
||||
*.jpeg binary
|
||||
*.gif binary
|
||||
*.ico binary
|
||||
*.pdf binary
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user