Title: Incorrect indentation · Issue #3436 · microsoft/TypeScript · GitHub
Open Graph Title: Incorrect indentation · Issue #3436 · microsoft/TypeScript
X Title: Incorrect indentation · Issue #3436 · microsoft/TypeScript
Description: Reported by Nicolas Goy (@kuon) in:microsoft/TypeScript-Sublime-Plugin#220 When I use autoformat, the following block get the following indentation: toolsElement = h.div({ className: "row-tools" }, h.button({ className: "add-node", onCli...
Open Graph Description: Reported by Nicolas Goy (@kuon) in:microsoft/TypeScript-Sublime-Plugin#220 When I use autoformat, the following block get the following indentation: toolsElement = h.div({ className: "row-tools" },...
X Description: Reported by Nicolas Goy (@kuon) in:microsoft/TypeScript-Sublime-Plugin#220 When I use autoformat, the following block get the following indentation: toolsElement = h.div({ className: "row-tool...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/3436
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incorrect indentation","articleBody":"Reported by @kuon in:https://github.com/Microsoft/TypeScript-Sublime-Plugin/issues/220\n\nWhen I use autoformat, the following block get the following indentation:\n\n```\ntoolsElement = h.div({ className: \"row-tools\" },\n h.button({\n className: \"add-node\",\n onClick: () => DataController.createNode(this.props.parentId)\n }, \"Create new node\")\n );\n```\n\nWhile I expect (Last line should be to the left):\n\n```\ntoolsElement = h.div({ className: \"row-tools\" },\n h.button({\n className: \"add-node\",\n onClick: () => DataController.createNode(this.props.parentId)\n }, \"Create new node\")\n);\n```\n\nAnother example:\n\n```\nreturn (\n h.div({\n className: \"view-node-row\",\n style: {\n width: width,\n height: rowHeight\n }\n },\n backgroundElement,\n centerElement,\n toolsElement,\n h.div({ className: \"nodes\" }, items)\n )\n );\n```\n\nWhile I expect:\n\n```\nreturn (\n h.div({\n className: \"view-node-row\",\n style: {\n width: width,\n height: rowHeight\n }\n },\n backgroundElement,\n centerElement,\n toolsElement,\n h.div({ className: \"nodes\" }, items)\n )\n);\n```\n\nPS: I'm doing react without JSX because TypeScript > JSX, but proper indentation is really crucial to readability.\n","author":{"url":"https://github.com/mhegazy","@type":"Person","name":"mhegazy"},"datePublished":"2015-06-09T06:06:06Z","url":"https://github.com/microsoft/TypeScript/issues/3436"}
| 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:63c2e31c-964f-2727-875f-7093ae78a3e7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CEF8:134361:845371:B04AC9:6B00DD64 |
| html-safe-nonce | d8eeaea39d79125a1aff6530ff8a1ccf4e0c168439ca5b898fbbcfe42cf0332f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUY4OjEzNDM2MTo4NDUzNzE6QjA0QUM5OjZCMDBERDY0IiwidmlzaXRvcl9pZCI6IjEzMDMxNzYyNDYxMjU0Mzg0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 43ae914ecdb780973cf87fe99714305ed5b961c0654a28e794348e3627d401a5 |
| hovercard-subject-tag | issue:86466003 |
| 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/3436/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f8407bbec5d4f7eb12e04c16a7d53c06790b21fcb71faa02acb8d5ab741f5ee8/microsoft/TypeScript/issues/3436 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f8407bbec5d4f7eb12e04c16a7d53c06790b21fcb71faa02acb8d5ab741f5ee8/microsoft/TypeScript/issues/3436 |
| og:image:alt | Reported by Nicolas Goy (@kuon) in:microsoft/TypeScript-Sublime-Plugin#220 When I use autoformat, the following block get the following indentation: toolsElement = h.div({ className: "row-tools" },... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mhegazy |
| hostname | github.com |
| expected-hostname | github.com |
| None | 043c3f30fbcbe2c6c8e729e10cbbbc90c406546f9fbbb67c648d38f6b7d16daf |
| 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 | 5425dc24e8bd8d6fca9641a12afc984825a43875 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width