Title: Support customization of where type imports are placed in organize/sort imports · Issue #52820 · microsoft/TypeScript · GitHub
Open Graph Title: Support customization of where type imports are placed in organize/sort imports · Issue #52820 · microsoft/TypeScript
X Title: Support customization of where type imports are placed in organize/sort imports · Issue #52820 · microsoft/TypeScript
Description: Filing this so I don't forget about it; after #52115, we allow (though, do not fully expose support for) the ability to customize the sort order used by organize/sort/auto imports. The intent is that we are able to match commonly used li...
Open Graph Description: Filing this so I don't forget about it; after #52115, we allow (though, do not fully expose support for) the ability to customize the sort order used by organize/sort/auto imports. The intent is th...
X Description: Filing this so I don't forget about it; after #52115, we allow (though, do not fully expose support for) the ability to customize the sort order used by organize/sort/auto imports. The intent i...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/52820
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support customization of where type imports are placed in organize/sort imports","articleBody":"Filing this so I don't forget about it; after #52115, we allow (though, do not fully expose support for) the ability to customize the sort order used by organize/sort/auto imports.\r\n\r\nThe intent is that we are able to match commonly used linters / formatters, leading towards fewer errors and edits needed to reach the \"final state\" of a file. e.g., instead of inserting an import at the end, then needing a linter to move it, we could just put it in the right place. Or, if you accidentally (or intentionally!) run Organize Imports, it should be possible to configure it such that it doesn't do anything.\r\n\r\nThis is mostly working already, however, our sort always puts type imports at the end. This differs from `eslint-plugin-simple-import-sort` and `dprint`, which ignore the `type` keyword and sort things that way (https://github.com/lydell/eslint-plugin-simple-import-sort/issues/124).\r\n\r\nWe should be able to add a new configuration which controls this behavior.\r\n\r\nI have half a change for this sitting in a branch already, but it still needs some work.","author":{"url":"https://github.com/jakebailey","@type":"Person","name":"jakebailey"},"datePublished":"2023-02-17T02:35:22Z","url":"https://github.com/microsoft/TypeScript/issues/52820"}
| 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:8ff16a8a-3d78-e6f0-210f-b24b50c2a279 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8DB0:1D41CD:164995:1D6EC3:6B0162B5 |
| html-safe-nonce | 5b277716b51df5a4722eaa0ed9e1394e73cb918346697a3f7841b6744741c39e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4REIwOjFENDFDRDoxNjQ5OTU6MUQ2RUMzOjZCMDE2MkI1IiwidmlzaXRvcl9pZCI6IjMzNzE4MjA3NzEwODgzNjAxMTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 94337718d27751e41733b5970b52bcb9872c7712f04b87958372531c73b706d2 |
| hovercard-subject-tag | issue:1588662269 |
| 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/52820/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8dc253cac314f9e847eb80f2b29d6077f88a942b75ddb3d1db680a29036784d6/microsoft/TypeScript/issues/52820 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8dc253cac314f9e847eb80f2b29d6077f88a942b75ddb3d1db680a29036784d6/microsoft/TypeScript/issues/52820 |
| og:image:alt | Filing this so I don't forget about it; after #52115, we allow (though, do not fully expose support for) the ability to customize the sort order used by organize/sort/auto imports. The intent is th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jakebailey |
| 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