Skip to content

Commit 9e35d38

Browse files
committed
🔧 Fix GitHub identification of TypeScript files
1 parent 8e91b27 commit 9e35d38

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.gitattributes

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Force Linguist to always identify .ts files as TypeScript.
2+
# Otherwise .ts files with a Node shebang are incorrectly identified as JavaScript.
3+
# https://github.com/github/linguist/issues/4469#issuecomment-475683753
4+
# https://github.com/github/linguist/issues/4923
5+
# https://github.com/github/linguist/issues/4112
6+
*.ts linguist-language=TypeScript

0 commit comments

Comments
 (0)