Skip to content

Commit 3729425

Browse files
committed
🔧 Fix GitHub identification of TypeScript files
1 parent 0045812 commit 3729425

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.gitattributes

Lines changed: 6 additions & 0 deletions
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)