Title: Consider including some base configs in the published `typescript` package · Issue #28147 · microsoft/TypeScript · GitHub
Open Graph Title: Consider including some base configs in the published `typescript` package · Issue #28147 · microsoft/TypeScript
X Title: Consider including some base configs in the published `typescript` package · Issue #28147 · microsoft/TypeScript
Description: Suggestion With package-based paths now allowed within tsconfig extends clauses, we now have the opportunity to ship prescriptive base configs with our published package. Use Cases This could be useful for providing extra "defaults" for ...
Open Graph Description: Suggestion With package-based paths now allowed within tsconfig extends clauses, we now have the opportunity to ship prescriptive base configs with our published package. Use Cases This could be us...
X Description: Suggestion With package-based paths now allowed within tsconfig extends clauses, we now have the opportunity to ship prescriptive base configs with our published package. Use Cases This could be us...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/28147
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Consider including some base configs in the published `typescript` package","articleBody":"## Suggestion\r\n\r\nWith [package-based paths now allowed within tsconfig extends clauses](https://github.com/Microsoft/TypeScript/pull/27348), we now have the opportunity to ship prescriptive base configs with our published package.\r\n\r\n## Use Cases\r\n\r\nThis could be useful for providing extra \"defaults\" for certain scenarios, like `jsx`, `js`, or a babel-y project, under paths like `typescript/jsx`, `typescript/js` and `typescript/babel`.\r\n\r\n## Examples\r\n\r\nWe publish, eg, `react/tsconfig.json` with contents:\r\n```json\r\n{\r\n \"compilerOptions\": {\r\n \"jsx\": \"react\",\r\n \"esModuleInterop\": true,\r\n \"allowSyntheticDefaultImports\": true,\r\n \"target\": \"es5\",\r\n \"module\": \"commonjs\",\r\n \"sourceMap\": true\r\n }\r\n}\r\n```\r\nso users can then write configs like:\r\n```ts\r\n{\r\n \"extends\": \"typescript/react\",\r\n \"include\": [ \"src/**/*\" ],\r\n \"compilerOnSave\": true\r\n}\r\n```\r\n","author":{"url":"https://github.com/weswigham","@type":"Person","name":"weswigham"},"datePublished":"2018-10-25T23:59:19Z","url":"https://github.com/microsoft/TypeScript/issues/28147"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:862641cc-3430-c80f-2901-8fcbf5186b60 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C310:A70A9:B4A0F4:EF2777:6B01C108 |
| html-safe-nonce | 3925e967377ef5118fbe419a3722632a068001037c1242af4acd8f98471d4a66 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzEwOkE3MEE5OkI0QTBGNDpFRjI3Nzc6NkIwMUMxMDgiLCJ2aXNpdG9yX2lkIjoiMzYxNDI5OTIwMTM5Mjk4NDMyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d79fa8232a342b227922ce200ce3fb8a3993d6893e2f6e142ef4653010cad07b |
| hovercard-subject-tag | issue:374177303 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/28147/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ef1f3da0720bd2f40bea79de14f8243c7b4605255c838f505d53be44cec5161d/microsoft/TypeScript/issues/28147 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ef1f3da0720bd2f40bea79de14f8243c7b4605255c838f505d53be44cec5161d/microsoft/TypeScript/issues/28147 |
| og:image:alt | Suggestion With package-based paths now allowed within tsconfig extends clauses, we now have the opportunity to ship prescriptive base configs with our published package. Use Cases This could be us... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | weswigham |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width