Skip to content

Commit dd1fa3e

Browse files
committed
chore(git): add common web formats gitattributes
1 parent e6df41b commit dd1fa3e

File tree

1 file changed

+48
-27
lines changed

1 file changed

+48
-27
lines changed

.gitattributes

Lines changed: 48 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,49 @@
11
# Auto detect text files and perform LF normalization
2-
* text=auto
3-
4-
*.cs text diff=csharp
5-
*.cshtml text diff=html
6-
*.csx text diff=csharp
7-
8-
*.sln text eol=crlf
9-
*.csproj text eol=crlf
10-
*.vbproj text eol=crlf
11-
*.vcxproj text eol=crlf
12-
*.vcproj text eol=crlf
13-
*.dbproj text eol=crlf
14-
*.fsproj text eol=crlf
15-
*.lsproj text eol=crlf
16-
*.wixproj text eol=crlf
17-
*.modelproj text eol=crlf
18-
*.sqlproj text eol=crlf
19-
*.wwaproj text eol=crlf
20-
21-
*.xproj text eol=crlf
22-
*.props text eol=crlf
23-
*.filters text eol=crlf
24-
*.vcxitems text eol=crlf
25-
26-
*.sql linguist-detectable=true
27-
*.sql linguist-language=sql
28-
.vscode/*.json linguist-language=JSON-with-Comments
2+
* text=auto
3+
4+
*.cs text diff=csharp
5+
*.cshtml text diff=html
6+
7+
*.sln text eol=crlf
8+
*.csproj text eol=crlf
9+
*.vcproj text eol=crlf
10+
*.sqlproj text eol=crlf
11+
*.config text eol=crlf
12+
13+
*.xproj text eol=crlf
14+
*.props text eol=crlf
15+
*.filters text eol=crlf
16+
*.vcxitems text eol=crlf
17+
18+
*.yaml text eol=crlf
19+
*.yml text eol=crlf
20+
21+
*.css text eol=crlf diff=css
22+
*.html text eol=crlf diff=html
23+
*.js text eol=crlf
24+
*.jsx text eol=crlf
25+
*.ts text eol=crlf
26+
*.tsx text eol=crlf
27+
28+
package.json text eol=crlf
29+
package-lock.json text eol=crlf -diff
30+
31+
*.sql linguist-detectable=true
32+
*.sql linguist-language=sql
33+
.vscode/*.json linguist-language=JSON-with-Comments
34+
tsconfig.json linguist-language=JSON-with-Comments
35+
36+
*.webm binary
37+
*.mp4 binary
38+
39+
*.svg text eol=crlf
40+
*.ico binary
41+
*.gif binary
42+
*.pdf binary
43+
*.png binary
44+
*.jpg binary
45+
*.jpeg binary
46+
*.webp binary
47+
48+
*.woff binary
49+
*.woff2 binary

0 commit comments

Comments
 (0)