Skip to content

Commit 2e371bc

Browse files
committed
Add .gitattributes to enforce LF line endings for contract files
1 parent 9cdd73b commit 2e371bc

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.gitattributes

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Ensure generated contract files always use LF line endings
5+
# This prevents CI failures due to CRLF/LF differences between Windows and Linux
6+
shared/contracts/*.d.ts text eol=lf
7+
shared/contracts/*.json text eol=lf
8+
9+
# Other common file types
10+
*.js text eol=lf
11+
*.ts text eol=lf
12+
*.json text eol=lf
13+
*.md text eol=lf
14+
*.yml text eol=lf
15+
*.yaml text eol=lf
16+
*.py text eol=lf
17+
*.sh text eol=lf
18+
19+
# Windows batch files keep their line endings
20+
*.bat text eol=crlf
21+
*.cmd text eol=crlf

0 commit comments

Comments
 (0)