-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[icons] Consider as written in TypeScript #22108
Conversation
f3f84f5
to
3318b7a
Compare
No bundle size changes comparing 993a623...3318b7a |
I mean it's not TS so it's not TS. |
@eps1lon I can't disagree, JS is not TS 😆. Here is the underlying problem I'm going after:
The only alternative I can think of is to generate .tsx rather than .js files in the icons script. However, this seems completely artificial, as we would skip tslint on these files to save time (no need to lint the, it's always the same pattern). |
This change assumes that people look at the language states and that it has an influence in their decisions for picking a dependency, that when they see 5%, they will search for "TypeScript" in the issue history to better understand the state of it. They will land on #15984 and blindly upvote the issue without spending a lot of time looking closely at the coverage. |
Motivation number 4 in or survey results: https://material-ui.com/blog/2020-developer-survey-results/#6-what-are-your-key-criteria-when-choosing-a-ui-library |
Question 6 in the survey is about user acquisition, which is not to be confused with current users that experience a lot less TypeScript issues in the survey of 2020 than 2019 :) |
But the stats are wrong either way. At least previously we didn't intentionally manipulate them. |
Moving to #22188 |
A continuation on #15984 (comment). It seems that migrating the icons from .js to a .tsx extension wouldn't make sense considering that we generate all these files as well as their .d.ts definitions. The current approach is more efficient. However, I believe we can consider these files are written in TypeScript.
Before
After
I have considered using
linguist-generated
until I saw:https://docs.github.com/en/github/administering-a-repository/customizing-how-changed-files-appear-on-github