mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-11 02:15:10 -05:00
Ensure spread attribute formatting options match jsxexpression
This commit is contained in:
@@ -619,7 +619,7 @@ namespace ts.formatting {
|
||||
}
|
||||
|
||||
function isJsxExpressionContext(context: FormattingContext): boolean {
|
||||
return context.contextNode.kind === SyntaxKind.JsxExpression;
|
||||
return context.contextNode.kind === SyntaxKind.JsxExpression || context.contextNode.kind === SyntaxKind.JsxSpreadAttribute;
|
||||
}
|
||||
|
||||
function isNextTokenParentJsxAttribute(context: FormattingContext): boolean {
|
||||
|
||||
Reference in New Issue
Block a user