Title: Indentation is too aggressive for ternary operator · Issue #3676 · microsoft/TypeScript · GitHub
Open Graph Title: Indentation is too aggressive for ternary operator · Issue #3676 · microsoft/TypeScript
X Title: Indentation is too aggressive for ternary operator · Issue #3676 · microsoft/TypeScript
Description: Actual: var v = 0 ? 1 : 2 ? 3 : 4; Expected: var v = 0 ? 1 : 2 ? 3 : 4; I believe the fix is that if the false branch of the ternary operator should have the same indentation as the true branch. In the case where the true branch is on th...
Open Graph Description: Actual: var v = 0 ? 1 : 2 ? 3 : 4; Expected: var v = 0 ? 1 : 2 ? 3 : 4; I believe the fix is that if the false branch of the ternary operator should have the same indentation as the true branch. In...
X Description: Actual: var v = 0 ? 1 : 2 ? 3 : 4; Expected: var v = 0 ? 1 : 2 ? 3 : 4; I believe the fix is that if the false branch of the ternary operator should have the same indentation as the true branch. In...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/3676
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Indentation is too aggressive for ternary operator","articleBody":"Actual:\n\n``` ts\nvar v =\n 0 ? 1 :\n 2 ? 3 :\n 4;\n```\n\nExpected:\n\n``` ts\nvar v =\n 0 ? 1 :\n 2 ? 3 :\n 4;\n```\n\nI believe the fix is that if the false branch of the ternary operator should have the same indentation as the true branch. In the case where the true branch is on the same line as the condition, it should not be considered indented, and therefore the false branch should not be indented.\n","author":{"url":"https://github.com/JsonFreeman","@type":"Person","name":"JsonFreeman"},"datePublished":"2015-06-29T23:24:48Z","url":"https://github.com/microsoft/TypeScript/issues/3676"}
| 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:14597424-53d7-46e0-a45a-29745a5fcaa3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DC60:2FFBA:BA658:102CF8:6B00A8D0 |
| html-safe-nonce | a2f73de2e207515885616fc5d61f1eb18fcce4e76fc4ccbc27402d5c44b70bf7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzYwOjJGRkJBOkJBNjU4OjEwMkNGODo2QjAwQThEMCIsInZpc2l0b3JfaWQiOiIxMDg1MDc3MTcyMjAyMjg1MjY0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3f30ca06512c28de1c4589d376deda5f93e9c7d7e6b4fbb4ae3fa9622eb1a4b9 |
| hovercard-subject-tag | issue:91934103 |
| 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/3676/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d6019f0a8ade8667030bdeea57cd8edd1bc14f8c8cac8d6cdc4d9bc519a208ce/microsoft/TypeScript/issues/3676 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d6019f0a8ade8667030bdeea57cd8edd1bc14f8c8cac8d6cdc4d9bc519a208ce/microsoft/TypeScript/issues/3676 |
| og:image:alt | Actual: var v = 0 ? 1 : 2 ? 3 : 4; Expected: var v = 0 ? 1 : 2 ? 3 : 4; I believe the fix is that if the false branch of the ternary operator should have the same indentation as the true branch. In... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JsonFreeman |
| hostname | github.com |
| expected-hostname | github.com |
| None | 455b493e3402a3a3a06beac5d20bb7db3da060808b220aa48d6a7eca7c59863a |
| 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 | 2f575159976167242d488c0b062eb355c4e198b7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width