-
-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy path.gitattributes
More file actions
150 lines (129 loc) · 3.72 KB
/
.gitattributes
File metadata and controls
150 lines (129 loc) · 3.72 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# =============================================================================
# LINE ENDING NORMALIZATION
# =============================================================================
# Ensure consistent line endings across all platforms (Windows/Mac/Linux)
# Auto detect text files and normalize to LF
* text=auto eol=lf
# Explicitly declare text files
*.ts text eol=lf
*.tsx text eol=lf
*.js text eol=lf
*.jsx text eol=lf
*.mjs text eol=lf
*.cjs text eol=lf
*.json text eol=lf
*.md text eol=lf
*.yaml text eol=lf
*.yml text eol=lf
*.txt text eol=lf
*.xml text eol=lf
*.html text eol=lf
*.css text eol=lf
*.scss text eol=lf
*.svg text eol=lf
# Shell scripts should always use LF
*.sh text eol=lf
# =============================================================================
# BINARY FILES
# =============================================================================
# Prevent corruption of binary files
# Images
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.webp binary
*.avif binary
# Fonts
*.woff binary
*.woff2 binary
*.ttf binary
*.otf binary
*.eot binary
# Archives
*.zip binary
*.tar binary
*.gz binary
*.tgz binary
*.7z binary
*.rar binary
# Executables
*.exe binary
*.dll binary
*.so binary
*.dylib binary
# =============================================================================
# GITHUB LINGUIST CONFIGURATION
# =============================================================================
# Control language detection and repository statistics on GitHub
# See: https://github.com/github/linguist
# Generated code - won't count toward language statistics
dist/** linguist-generated
build/** linguist-generated
out/** linguist-generated
coverage/** linguist-generated
*.d.ts linguist-generated
# Lock files - mark as generated
package-lock.json linguist-generated
bun.lockb linguist-generated
yarn.lock linguist-generated
# Documentation
*.md linguist-documentation
docs/** linguist-documentation
# Configuration and data files
*.json linguist-data
*.yaml linguist-data
*.yml linguist-data
.vscode/** linguist-data
.github/** linguist-data
# Vendored/third-party code
node_modules/** linguist-vendored
vendor/** linguist-vendored
# =============================================================================
# DIFF HANDLING
# =============================================================================
# Improve diff readability for specific file types
# JSON files - use JSON-aware diff
*.json diff=json
package.json diff=json
# Lockfiles - disable diff (too noisy)
package-lock.json -diff
bun.lockb -diff
yarn.lock -diff
# =============================================================================
# MERGE STRATEGIES
# =============================================================================
# Custom merge behavior for specific files
# Lockfiles - use binary merge to avoid conflicts
package-lock.json merge=binary
bun.lockb merge=binary
yarn.lock merge=binary
# =============================================================================
# EXPORT-IGNORE
# =============================================================================
# Files to exclude from `git archive` (reduces npm package size)
.github/ export-ignore
.vscode/ export-ignore
.husky/ export-ignore
tests/ export-ignore
coverage/ export-ignore
docs/ export-ignore
scripts/ export-ignore
*.test.ts export-ignore
*.test.tsx export-ignore
*.test.js export-ignore
.gitignore export-ignore
.gitattributes export-ignore
biome.json export-ignore
tsconfig.json export-ignore
tsconfig.test.json export-ignore
vitest.config.ts export-ignore
vitest.integration.config.ts export-ignore
bunfig.toml export-ignore
wrangler.toml export-ignore
Dockerfile export-ignore
.dockerignore export-ignore
.env.example export-ignore
AGENTS.md export-ignore
CLAUDE.md export-ignore