mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Ensure spread attribute formatting options match jsxexpression
This commit is contained in:
1 parent
ff4f03c51d
commit
3f82034498
1 file changed
+1
-1
@@ -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