File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
crates/oxc_formatter/src/write/jsx
tasks/prettier_conformance/snapshots Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -200,8 +200,11 @@ pub fn should_expand(mut parent: &AstNodes<'_>) -> bool {
200200 } ,
201201 _ => return false ,
202202 } ;
203- matches ! ( maybe_jsx_expression_child, AstNodes :: JSXExpressionContainer ( container)
204- if matches!( container. parent, AstNodes :: JSXElement ( _) | AstNodes :: JSXFragment ( _) ) )
203+ matches ! (
204+ maybe_jsx_expression_child. without_chain_expression( ) ,
205+ AstNodes :: JSXExpressionContainer ( container)
206+ if matches!( container. parent, AstNodes :: JSXElement ( _) | AstNodes :: JSXFragment ( _) )
207+ )
205208}
206209
207210impl < ' a , ' b > AnyJsxTagWithChildren < ' a , ' b > {
Original file line number Diff line number Diff line change 1- js compatibility: 695 /749 (92.79 %)
1+ js compatibility: 696 /749 (92.92 %)
22
33# Failed
44
@@ -55,6 +55,5 @@ js compatibility: 695/749 (92.79%)
5555| js/test-declarations/test_declarations.js | 💥💥 | 95.88% |
5656| jsx/fbt/test.js | 💥 | 84.06% |
5757| jsx/jsx/quotes.js | 💥💥💥💥 | 79.41% |
58- | jsx/optional-chaining/optional-chaining.jsx | 💥 | 85.96% |
5958| jsx/single-attribute-per-line/single-attribute-per-line.js | 💥✨ | 43.37% |
6059| jsx/text-wrap/test.js | 💥 | 99.56% |
Original file line number Diff line number Diff line change 1- ts compatibility: 543 /598 (90.80 %)
1+ ts compatibility: 544 /598 (90.97 %)
22
33# Failed
44
55| Spec path | Failed or Passed | Match ratio |
66| :-------- | :--------------: | :---------: |
77| jsx/fbt/test.js | 💥 | 84.06% |
88| jsx/jsx/quotes.js | 💥💥💥💥 | 79.41% |
9- | jsx/optional-chaining/optional-chaining.jsx | 💥 | 85.96% |
109| jsx/single-attribute-per-line/single-attribute-per-line.js | 💥✨ | 43.37% |
1110| jsx/text-wrap/test.js | 💥 | 99.56% |
1211| typescript/angular-component-examples/15934-computed.component.ts | 💥💥 | 76.92% |
You can’t perform that action at this time.
0 commit comments