René's URL Explorer Experiment


Title: Default compiler options · Issue #9642 · microsoft/TypeScript · GitHub

Open Graph Title: Default compiler options · Issue #9642 · microsoft/TypeScript

X Title: Default compiler options · Issue #9642 · microsoft/TypeScript

Description: At the moment there are a bunch of opt-in compiler flags that are off by default. In most cases, they fix or add some behavior to the compilation that would have otherwise been a breaking change. This makes perfect sense for existing pro...

Open Graph Description: At the moment there are a bunch of opt-in compiler flags that are off by default. In most cases, they fix or add some behavior to the compilation that would have otherwise been a breaking change. T...

X Description: At the moment there are a bunch of opt-in compiler flags that are off by default. In most cases, they fix or add some behavior to the compilation that would have otherwise been a breaking change. T...

Opengraph URL: https://github.com/microsoft/TypeScript/issues/9642

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Default compiler options","articleBody":"At the moment there are a bunch of opt-in compiler flags that are off by default. In most cases, they fix or add some behavior to the compilation that would have otherwise been a breaking change. This makes perfect sense for existing projects, but it shouldn't be default behavior for new ones.\n\nIMHO, TS 2.0 would have been a good opportunity to turn some opt-in flags into opt-outs at least, if not removing them altogether. Avoiding breaking changes lead to a configuration nightmare where there are a dozen options doing similar things in slightly different manners. I hope you will take this into account for future releases.\n\nFor now my proposal would be to simply change the output of `tsc --init`. It won't affect users that create a tsconfig file from scratch, but it will at least give some useful defaults for the others, while keeping transparent what options were explicitly used.\n\nRunning `tsc --init`, yields this:\n\n```\n{\n    \"compilerOptions\": {\n        \"module\": \"commonjs\",\n        \"target\": \"es5\",\n        \"noImplicitAny\": false,\n        \"sourceMap\": false\n    },\n    \"exclude\": [\n        \"node_modules\"\n    ]\n}\n```\n\nProposal:\n\n```\n{\n    \"compilerOptions\": {\n        \"module\": \"commonjs\",\n        \"target\": \"es5\",\n        \"noImplicitAny\": true,\n        \"noImplicitThis\": true,\n        \"noImplicitReturns\": true,\n        \"strictNullChecks\": true\n        \"sourceMap\": false\n    },\n    \"exclude\": [\n        \"node_modules\"\n    ]\n}\n```\n\nMy reasoning here is that new projects should have the stricter settings, because there is no legacy JavaScript code being migrated. The `noImplicit*` options make it easier to have good, type-safe code from the start, especially for new users, who don't understand the difference or see its advantages.\n","author":{"url":"https://github.com/use-strict","@type":"Person","name":"use-strict"},"datePublished":"2016-07-12T14:12:45Z","url":"https://github.com/microsoft/TypeScript/issues/9642"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:fd951985-340f-c05a-f884-afe89734fa1c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDD56:428E1:31864:42893:6B0093EA
html-safe-nonce50aa0cc6c212c32b548da6e6a3ac3f754d5da18866894d2680fdfaeebed4da7c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDU2OjQyOEUxOjMxODY0OjQyODkzOjZCMDA5M0VBIiwidmlzaXRvcl9pZCI6IjY3MDEzMTI4OTM5MjI2MTIyMDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac17a8634590ad9c6c9a15b9262d588ee802b09ee61516464f6fa2ce8b90ea116e
hovercard-subject-tagissue:165090570
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/9642/issue_layout
twitter:imagehttps://opengraph.githubassets.com/10fa3151069b2a429d46dca5180ef4944043271b55ad7eeb0c6eec4691e6ddb4/microsoft/TypeScript/issues/9642
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/10fa3151069b2a429d46dca5180ef4944043271b55ad7eeb0c6eec4691e6ddb4/microsoft/TypeScript/issues/9642
og:image:altAt the moment there are a bunch of opt-in compiler flags that are off by default. In most cases, they fix or add some behavior to the compilation that would have otherwise been a breaking change. T...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameuse-strict
hostnamegithub.com
expected-hostnamegithub.com
Nonec710a5cb5c47be60abfe6e8410436d409906979dbed614ef09f29c60f5535b08
turbo-cache-controlno-preview
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasebe616a2a6ec1c609d6e002896dff5352d5c5f28b
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/9642#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F9642
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F9642
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/9642
Reloadhttps://github.com/microsoft/TypeScript/issues/9642
Reloadhttps://github.com/microsoft/TypeScript/issues/9642
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests308 (308)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/9642
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/9642
Default compiler optionshttps://github.com/microsoft/TypeScript/issues/9642#top
CommittedThe team has roadmapped this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Committed%22
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
TypeScript 2.3https://github.com/microsoft/TypeScript/milestone/38
https://github.com/use-strict
Alexandru Ciucă (use-strict)https://github.com/use-strict
on Jul 12, 2016https://github.com/microsoft/TypeScript/issues/9642#issue-165090570
Nexthttps://github.com/microsoft/TypeScript/issues/9642?timeline_page=1
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
In DiscussionNot yet reached consensushttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%22
on Jul 12, 2016https://github.com/microsoft/TypeScript/issues/9642#event-720448139
https://github.com/jods4
jods (jods4)https://github.com/jods4
on Jul 12, 2016https://github.com/microsoft/TypeScript/issues/9642#issuecomment-232178309
https://github.com/GauSim
Simon Gausmann (GauSim)https://github.com/GauSim
on Jul 12, 2016https://github.com/microsoft/TypeScript/issues/9642#issuecomment-232188336
https://github.com/jods4
jods (jods4)https://github.com/jods4
on Jul 12, 2016https://github.com/microsoft/TypeScript/issues/9642#issuecomment-232196446
Simon Gausmann (@GauSim)https://github.com/GauSim
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Jul 12, 2016https://github.com/microsoft/TypeScript/issues/9642#issuecomment-232198865
https://github.com/jods4
jods (jods4)https://github.com/jods4
on Jul 12, 2016https://github.com/microsoft/TypeScript/issues/9642#issuecomment-232202095
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Jul 13, 2016https://github.com/microsoft/TypeScript/issues/9642#issuecomment-232219756
https://github.com/Elephant-Vessel
Elephant-Vesselhttps://github.com/Elephant-Vessel
on Jul 13, 2016https://github.com/microsoft/TypeScript/issues/9642#issuecomment-232287126
nudginghttps://en.wikipedia.org/wiki/Nudge_theory
https://github.com/use-strict
Alexandru Ciucă (use-strict)https://github.com/use-strict
on Jul 13, 2016https://github.com/microsoft/TypeScript/issues/9642#issuecomment-232295716
Mohamed Hegazy (@mhegazy)https://github.com/mhegazy
https://github.com/Elephant-Vessel
Elephant-Vesselhttps://github.com/Elephant-Vessel
on Jul 14, 2016https://github.com/microsoft/TypeScript/issues/9642#issuecomment-232655633
Mohamed Hegazy (@mhegazy)https://github.com/mhegazy
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
CommittedThe team has roadmapped this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Committed%22
In DiscussionNot yet reached consensushttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%22
on Aug 22, 2016https://github.com/microsoft/TypeScript/issues/9642#event-763741315
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Aug 22, 2016https://github.com/microsoft/TypeScript/issues/9642#issuecomment-241575001
not our design philosophyhttps://cdn.meme.am/instances/500x/54765812.jpg
https://github.com/jods4
jods (jods4)https://github.com/jods4
on Aug 22, 2016https://github.com/microsoft/TypeScript/issues/9642#issuecomment-241584624
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
https://github.com/jods4
jods (jods4)https://github.com/jods4
on Aug 30, 2016https://github.com/microsoft/TypeScript/issues/9642#issuecomment-243595109
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
https://github.com/Elephant-Vessel
Elephant-Vesselhttps://github.com/Elephant-Vessel
on Aug 31, 2016https://github.com/microsoft/TypeScript/issues/9642#issuecomment-243670932
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Sep 21, 2016https://github.com/microsoft/TypeScript/issues/9642#event-796552013
https://github.com/aluanhaddad
Aluan Haddad (aluanhaddad)https://github.com/aluanhaddad
on Jan 7, 2017https://github.com/microsoft/TypeScript/issues/9642#issuecomment-271091132
https://github.com/mightyiam
Shahar "Dawn" Or (mightyiam)https://github.com/mightyiam
on Mar 3, 2017https://github.com/microsoft/TypeScript/issues/9642#issuecomment-283923439
https://github.com/jods4
jods (jods4)https://github.com/jods4
on Mar 6, 2017https://github.com/microsoft/TypeScript/issues/9642#issuecomment-284572436
#14486https://github.com/microsoft/TypeScript/pull/14486
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Mar 7, 2017https://github.com/microsoft/TypeScript/issues/9642#issuecomment-284579672
#14486https://github.com/microsoft/TypeScript/pull/14486
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Mar 7, 2017https://github.com/microsoft/TypeScript/issues/9642#issuecomment-284580325
jods (@jods4)https://github.com/jods4
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
on Mar 7, 2017https://github.com/microsoft/TypeScript/issues/9642#event-988750220
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
TypeScript 2.3https://github.com/microsoft/TypeScript/milestone/38
on Mar 7, 2017https://github.com/microsoft/TypeScript/issues/9642#event-988750393
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Mar 7, 2017https://github.com/microsoft/TypeScript/issues/9642#event-988750470
https://github.com/mightyiam
Shahar "Dawn" Or (mightyiam)https://github.com/mightyiam
on Mar 7, 2017https://github.com/microsoft/TypeScript/issues/9642#issuecomment-284625247
microsofthttps://github.com/microsoft
on Jun 19, 2018https://github.com/microsoft/TypeScript/issues/9642#event-1689842064
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/9642
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/9642
CommittedThe team has roadmapped this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Committed%22
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
TypeScript 2.3https://github.com/microsoft/TypeScript/milestone/38
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.