-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitattributes
More file actions
36 lines (31 loc) · 1.39 KB
/
Copy path.gitattributes
File metadata and controls
36 lines (31 loc) · 1.39 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
# Force consistent line endings so contributors on Windows, macOS and Linux
# don't fight over CRLF. The default behaviour is to leave line endings
# alone per-platform, which leads to noisy diffs and "LF will be replaced
# by CRLF" warnings. We pick LF universally except for a few Windows-only
# formats that have hard requirements.
# Auto-detect text files and normalise to LF in the index.
* text=auto eol=lf
# Force LF for shell scripts (Bash on Windows, macOS and Linux all want
# LF; CRLF breaks `bash script.sh` on every platform).
*.sh text eol=lf
*.bash text eol=lf
# TypeScript, JavaScript, JSON, YAML, Markdown — LF everywhere.
*.ts text eol=lf
*.tsx text eol=lf
*.js text eol=lf
*.cjs text eol=lf
*.mjs text eol=lf
*.json text eol=lf
*.jsonc text eol=lf
*.yaml text eol=lf
*.yml text eol=lf
*.md text eol=lf
# PowerShell scripts: Windows convention is CRLF, and PS 5.1 (still the
# default on Windows 10) misparses pure-LF on a few builtins. Use CRLF.
*.ps1 text eol=crlf
*.psm1 text eol=crlf
# Generated artefacts: leave line endings alone (npm/Yarn may write CRLF
# on Windows runners and that's fine — they're not edited by hand).
package-lock.json -text merge=binary
dist/** -text merge=binary
node_modules/** -text merge=binary