-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitattributes
More file actions
53 lines (45 loc) · 1008 Bytes
/
.gitattributes
File metadata and controls
53 lines (45 loc) · 1008 Bytes
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Ensure consistent line endings across OS
* text=auto eol=lf
# Treat all JS/TS files as UTF-8 text
*.js text diff=javascript
*.jsx text diff=javascript
*.ts text diff=typescript
*.tsx text diff=typescript
# React, HTML, CSS
*.html text diff=html
*.css text diff=css
*.scss text diff=css
*.sass text diff=css
# JSON, YAML, Markdown, etc.
*.json text diff=json
*.yml text diff=yaml
*.yaml text diff=yaml
*.md text diff=markdown
*.mdx text diff=markdown
# Lockfiles (don’t normalize line endings)
package-lock.json -text
pnpm-lock.yaml -text
yarn.lock -text
# Fonts, images, binaries — treat as binary
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.webp binary
*.ico binary
*.svg text
*.ttf binary
*.otf binary
*.woff binary
*.woff2 binary
*.eot binary
*.pdf binary
*.zip binary
# Type definitions
*.d.ts text diff=typescript
# Optional: treat env files as text (but ignored in .gitignore)
.env text
.env.* text
# Ignore system files in attributes as well
.DS_Store binary
Thumbs.db binary