Don't indent + in object value (#2227)
This is a "regression" from when we started using the same heuristic for `=` and `:` Fixes #2129master
parent
c36dd48339
commit
ec1b672bbf
|
@ -304,7 +304,9 @@ function genericPrintNoParens(path, options, print, args) {
|
|||
(parent.type === "JSXExpressionContainer" &&
|
||||
parentParent.type === "JSXAttribute") ||
|
||||
(n === parent.body && parent.type === "ArrowFunctionExpression") ||
|
||||
(n !== parent.body && parent.type === "ForStatement")
|
||||
(n !== parent.body && parent.type === "ForStatement") ||
|
||||
parent.type === "ObjectProperty" ||
|
||||
parent.type === "Property"
|
||||
) {
|
||||
return group(concat(parts));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue