Skip to content

Commit dc1cbce

Browse files
committed
[ADD] Create .gitattributes to enforce LF line endings and define binary file types
- matches .prettierrc sets "endOfLine": "lf"
1 parent c28dac4 commit dc1cbce

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.gitattributes

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Enforce LF line endings for text files on all platforms.
2+
# Prettier config sets `endOfLine: lf`, so checkout must match.
3+
* text=auto eol=lf
4+
5+
# Binary files - do not touch
6+
*.png binary
7+
*.jpg binary
8+
*.jpeg binary
9+
*.gif binary
10+
*.ico binary
11+
*.zip binary
12+
*.pdf binary

0 commit comments

Comments
 (0)