mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-10 15:25:54 -06:00
Ensure spread attribute formatting options match jsxexpression
This commit is contained in:
parent
ff4f03c51d
commit
3f82034498
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user