-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Set TSConfig Lib Defaults #5684
Comments
As long as that doesn't confuse people about what browser APIs are actually available in their target browsers. You could also set target to es6 and it would infer some reasonable libs for you (but again APIs would probably break in IE11) |
We keep getting issues of people confused why TypeScript is telling them about valid errors. 😅 That's why I'm OK with an everything-evergreen-on-by-default behavior. |
Yeah good call. I actually ran into an obscure error reported because of it yesterday when porting to react-scripts since I was using async / await. It complained about |
May want to double check what's included in esnext lib, because i think it includes stage 0 proposals? |
Eh, they're just browser APIs I don't think it's a big deal. |
Thanks for this! It would be really awesome if this could be released in a new |
What's the process for including these changes in my project? I just put in my own |
I think it will be used as default in case if you don't have tsconfig.json file yet. Putting it manually is the right way of doing it, since you might choose to use different |
Let's just turn on everything. Something like
['dom', 'dom.iterable', 'esnext']
?The text was updated successfully, but these errors were encountered: