-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy path.gitattributes
More file actions
39 lines (36 loc) · 1.24 KB
/
Copy path.gitattributes
File metadata and controls
39 lines (36 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Enforce LF line endings in the working tree for all platforms.
#
# Without this file, Windows developers with `core.autocrlf=true` (the default)
# get CRLF in their working tree, which conflicts with Biome's
# `formatter.lineEnding: "lf"` config and causes `npm run format:check` to
# report spurious errors (the index stores LF correctly; only the local
# working tree is wrong).
#
# `* text=auto eol=lf` tells Git: detect text files automatically, and force
# LF in the working tree regardless of the platform's autocrlf setting.
#
# This file is the canonical override for the platform-default behavior.
# Added in TP-193 fold (post-merge format-pass cleanup).
* text=auto eol=lf
# Explicit overrides for binary file types (defensive — autodetection usually
# handles these correctly, but explicit declaration prevents corner cases).
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.webp binary
*.ico binary
*.zip binary
*.tar binary
*.gz binary
*.tgz binary
# Source files: explicit LF (redundant given `* text=auto eol=lf` but improves
# discoverability when grepping `.gitattributes` for a specific extension).
*.ts text eol=lf
*.tsx text eol=lf
*.mjs text eol=lf
*.js text eol=lf
*.json text eol=lf
*.md text eol=lf
*.yml text eol=lf
*.yaml text eol=lf