forked from microsoft/rushstack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitattributes
78 lines (71 loc) · 3.02 KB
/
.gitattributes
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
# Prevent Git to auto detect text files and perform LF normalization.
* -text
# The item with `binary` is treated as binary file.
# The item with `eol=lf` is converted to LF on checkin, back to LF on checkout.
# The item with `eol=crlf` is converted to LF on checkin, back to CRLF on checkout.
# To get full extension list in the repo, remove the node_modules folder and run the following PowerShell cmdlet.
# PS> Get-ChildItem . -Recurse | Where-Object { -not $_.PSIsContainer } | ForEach-Object { $_.Extension.ToLower() } | Sort-Object | Get-Unique
# If new extensions are added, please refresh the repo with the following commands.
# Reference: https://git-scm.com/docs/gitattributes
# > rm .git/index # Remove the index to force Git to
# > git reset # re-scan the working directory
# > git status # Show files that will be normalized
# > git add -u
# > git add .gitattributes
# > git commit -m "Apply end-of-line normalization based on updated .gitattributes file"
*.aspx text eol=crlf
*.bowerrc text eol=lf
*.cmd text eol=crlf
*.command text eol=lf
*.config text eol=crlf
*.cs text eol=crlf
*.csproj text eol=crlf
*.css text eol=crlf
*.dll binary
*.editorconfig text eol=lf
*.eot binary
*.example text eol=crlf
*.exe binary
*.gif binary
*.gitattributes text eol=lf
*.gitignore text eol=lf
*.gitmodules text eol=lf
*.html text eol=crlf
*.ico binary
*.jpg binary
*.js text eol=crlf
*.json text eol=crlf
*.less text eol=crlf
*.map text eol=lf
*.md text eol=crlf
*.npmignore text eol=lf
*.png binary
*.ps1 text eol=crlf
*.rels text eol=crlf
*.resx text eol=crlf
*.scss text eol=crlf
*.sln text eol=crlf
*.svg text elf=lf
*.ts text eol=crlf
*.tsx text eol=crlf
*.ttf binary
*.woff binary
*.wsp binary
*.xml text eol=crlf
# NPM "bin" scripts MUST have LF, or else the executable fails to run on Mac.
# This fnmatch expression only matches files in a "bin" folder and without
# a period in the filename.
/*/*/bin/+([!.]) -text
# Don't allow people to merge changes to these generated files, because the result
# may be invalid. You need to run "rush update" again.
pnpm-lock.yaml merge=binary
shrinkwrap.yaml merge=binary
npm-shrinkwrap.json merge=binary
yarn.lock merge=binary
# Rush's JSON config files use JavaScript-style code comments. The rule below prevents pedantic
# syntax highlighters such as GitHub's from highlighting these comments as errors. Your text editor
# may also require a special configuration to allow comments in JSON.
#
# For more information, see this issue: https://github.com/Microsoft/web-build-tools/issues/1088
#
*.json linguist-language=JSON-with-Comments