Skip to content

Commit 02d70df

Browse files
Enforce LF line endings via .gitattributes
Add a committed .gitattributes (text=auto eol=lf, binaries marked) so line endings are LF in the repo and the working tree on every platform, independent of each contributor's core.autocrlf. Make Prettier's endOfLine: "lf" explicit to match. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 593c6d4 commit 02d70df

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

.gitattributes

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Line-ending policy for the whole repo, independent of each contributor's
2+
# local Git config. Text files are stored as LF in the repository AND checked
3+
# out as LF in the working tree on every platform — so Windows checkouts stop
4+
# introducing CRLF, and Prettier (endOfLine: "lf") stays happy.
5+
* text=auto eol=lf
6+
7+
# Binary assets: Git must never apply line-ending conversion to these.
8+
*.gif binary
9+
*.png binary
10+
*.jpg binary
11+
*.jpeg binary
12+
*.webp binary
13+
*.ico binary
14+
*.woff binary
15+
*.woff2 binary
16+
*.ttf binary
17+
*.eot binary
18+
*.mp4 binary
19+
*.webm binary
20+
*.pdf binary

.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"useTabs": true,
33
"trailingComma": "none",
44
"printWidth": 100,
5+
"endOfLine": "lf",
56
"plugins": [
67
"@ianvs/prettier-plugin-sort-imports",
78
"prettier-plugin-svelte",

0 commit comments

Comments
 (0)