-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.gitattributes
More file actions
108 lines (86 loc) · 3.6 KB
/
.gitattributes
File metadata and controls
108 lines (86 loc) · 3.6 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
# ──────────────────────────────────────────────────────────────────────────────
# .gitattributes — normalise line endings and set diff/merge drivers
# https://git-scm.com/docs/gitattributes
# ──────────────────────────────────────────────────────────────────────────────
# Default: normalise all text files to LF in the repo; checkout as LF on all
# platforms (consistent with .editorconfig end_of_line = lf)
* text=auto eol=lf
# ── Source code ───────────────────────────────────────────────────────────────
# JavaScript / TypeScript
*.js text eol=lf
*.cjs text eol=lf
*.mjs text eol=lf
*.ts text eol=lf
*.cts text eol=lf
*.mts text eol=lf
*.d.ts text eol=lf
# Vue / HTML / CSS / preprocessors
*.vue text eol=lf
*.html text eol=lf
*.css text eol=lf
*.scss text eol=lf
*.less text eol=lf
# Python
*.py text eol=lf
*.pyi text eol=lf
*.pyw text eol=lf
# Shell
*.sh text eol=lf
*.bash text eol=lf
*.zsh text eol=lf
# ── Data / config ─────────────────────────────────────────────────────────────
*.json text eol=lf
*.jsonc text eol=lf
*.yaml text eol=lf
*.yml text eol=lf
*.toml text eol=lf
*.ini text eol=lf
*.env text eol=lf
*.env.* text eol=lf
# ── Docs / markup ─────────────────────────────────────────────────────────────
*.md text eol=lf diff=markdown
*.mdx text eol=lf diff=markdown
*.txt text eol=lf
*.rst text eol=lf
# ── Build / tooling ───────────────────────────────────────────────────────────
Taskfile.yml text eol=lf
Dockerfile text eol=lf
*.dockerfile text eol=lf
# lockfiles: store as text, skip diffs
*.lock text eol=lf -diff
# ── Git housekeeping ──────────────────────────────────────────────────────────
.gitignore text eol=lf
.gitattributes text eol=lf
.editorconfig text eol=lf
# ── Binary — never diff or merge ──────────────────────────────────────────────
# Images
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
# SVG is XML — treat as text
*.svg text eol=lf
*.webp binary
*.avif binary
# Fonts
*.woff binary
*.woff2 binary
*.ttf binary
*.otf binary
*.eot binary
# Archives / compiled
*.zip binary
*.tar binary
*.gz binary
*.tgz binary
*.br binary
*.7z binary
*.jar binary
*.pyc binary
# ── Export-ignore (exclude from `git archive` / release tarballs) ─────────────
.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.github/workflows/ export-ignore
.github/.gitkeep export-ignore