Skip to content

Commit 56c63dc

Browse files
committed
fix: normalize line endings with .gitattributes for cross-platform CI
Added .gitattributes to enforce LF line endings on all platforms. This fixes the Biome format errors on Windows CI where CRLF (\r\n) was being used instead of LF (\n). All text files now use LF endings regardless of platform, ensuring consistent formatting across Ubuntu, macOS, and Windows CI builds.
1 parent ccf3cae commit 56c63dc

File tree

1 file changed

+8
-21
lines changed

1 file changed

+8
-21
lines changed

.gitattributes

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,19 @@
1+
# Normalize line endings for all text files
2+
* text=auto eol=lf
13

2-
# Documentation
4+
# Specific file types
5+
*.ts text eol=lf
6+
*.js text eol=lf
7+
*.json text eol=lf
38
*.md text eol=lf
4-
*.txt text eol=lf
5-
6-
# Configuration files
7-
*.cfg text eol=lf
8-
*.ini text eol=lf
9-
*.toml text eol=lf
109
*.yml text eol=lf
1110
*.yaml text eol=lf
12-
*.json text eol=lf
13-
14-
# Shell scripts
15-
*.sh text eol=lf
16-
17-
# Auto detect text files and perform LF normalization
18-
* text=auto
11+
*.csv text eol=lf
1912

2013
# Binary files
2114
*.png binary
2215
*.jpg binary
2316
*.jpeg binary
2417
*.gif binary
2518
*.ico binary
26-
*.pdf binary
27-
*.zip binary
28-
*.tar.gz binary
29-
*.exe binary
30-
*.dll binary
31-
*.so binary
32-
*.dylib binary
19+
*.vsix binary

0 commit comments

Comments
 (0)