TypeScript detection not working properly in node.js scripts #6692
Unanswered
eugene-matvejev
asked this question in
Classification
Replies: 1 comment
-
The files are getting classified as Node.js programs because of the Using an override: # Add the following to your project's `.gitattributes` file
*.ts linguist-language=TypeScript Using modelines: #!/usr/bin/env node
// -*- mode: typescript; -*-
declare type Script = "to be this file's language"; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
Hello,
I mentor a person who work on side project
https://github.com/search?q=repo%3Aanna-liepina%2Fexplore-sa-node++language%3AJavaScript&type=code
but for some reason a lot of typescript files are not recognized as typescript
Expected behaviour
files should be recognized because files are 100% typescript
Related discussion
n/a
Additional notes
demo link:
https://github.com/search?q=repo%3Aanna-liepina%2Fexplore-sa-node++language%3AJavaScript&type=code
Beta Was this translation helpful? Give feedback.
All reactions