mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-07 00:39:00 +08:00
Merge pull request #183 from GeWuYou/chore/add-editorconfig-gitattributes
chore(config): 添加编辑器配置和 Git 属性设置
This commit is contained in:
commit
c62893d0c2
18
.editorconfig
Normal file
18
.editorconfig
Normal file
@ -0,0 +1,18 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
|
||||
[*.sln]
|
||||
end_of_line = crlf
|
||||
|
||||
[*.bat]
|
||||
end_of_line = crlf
|
||||
|
||||
[*.cmd]
|
||||
end_of_line = crlf
|
||||
|
||||
[*.ps1]
|
||||
end_of_line = crlf
|
||||
35
.gitattributes
vendored
Normal file
35
.gitattributes
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
# Keep repository text normalized to LF unless a file format is known to require CRLF.
|
||||
* text=auto eol=lf
|
||||
|
||||
# Solution and Windows-native scripts are more interoperable when they keep CRLF in the working tree.
|
||||
*.sln text eol=crlf
|
||||
*.bat text eol=crlf
|
||||
*.cmd text eol=crlf
|
||||
*.ps1 text eol=crlf
|
||||
|
||||
# Source, config, scripts, and documentation stay LF across WSL and Windows editors.
|
||||
*.sh text eol=lf
|
||||
*.cs text eol=lf
|
||||
*.csproj text eol=lf
|
||||
*.props text eol=lf
|
||||
*.targets text eol=lf
|
||||
*.json text eol=lf
|
||||
*.yml text eol=lf
|
||||
*.yaml text eol=lf
|
||||
*.md text eol=lf
|
||||
*.ts text eol=lf
|
||||
*.js text eol=lf
|
||||
*.mts text eol=lf
|
||||
*.vue text eol=lf
|
||||
*.css text eol=lf
|
||||
|
||||
# Common binary assets should never be line-normalized.
|
||||
*.png binary
|
||||
*.jpg binary
|
||||
*.jpeg binary
|
||||
*.gif binary
|
||||
*.ico binary
|
||||
*.zip binary
|
||||
*.dll binary
|
||||
*.so binary
|
||||
*.pdb binary
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user