Skip to content

Commit 3f82034

Browse files
author
Benjamin Lichtman
committed
Ensure spread attribute formatting options match jsxexpression
1 parent ff4f03c commit 3f82034

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/services/formatting/rules.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ namespace ts.formatting {
619619
}
620620

621621
function isJsxExpressionContext(context: FormattingContext): boolean {
622-
return context.contextNode.kind === SyntaxKind.JsxExpression;
622+
return context.contextNode.kind === SyntaxKind.JsxExpression || context.contextNode.kind === SyntaxKind.JsxSpreadAttribute;
623623
}
624624

625625
function isNextTokenParentJsxAttribute(context: FormattingContext): boolean {

0 commit comments

Comments
 (0)