parent
076804c09c
commit
bae08d4e7e
|
@ -3205,7 +3205,7 @@ function printBinaryishExpressions(path, print, options, isNested, isInsideParen
|
|||
// in order to avoid having a small right part like -1 be on its own line.
|
||||
const parent = path.getParentNode();
|
||||
const shouldGroup =
|
||||
!isInsideParenthesis &&
|
||||
!(isInsideParenthesis && node.type === "LogicalExpression") &&
|
||||
parent.type !== node.type &&
|
||||
node.left.type !== node.type &&
|
||||
node.right.type !== node.type;
|
||||
|
|
|
@ -61,6 +61,9 @@ if (this.hasPlugin("dynamicImports") && this.lookahead().type) {}
|
|||
if (this.hasPlugin("dynamicImports") && this.lookahead().type === tt.parenLeft) {}
|
||||
|
||||
if (this.hasPlugin("dynamicImports") && this.lookahead().type === tt.parenLeft.right) {}
|
||||
|
||||
if (VeryVeryVeryVeryVeryVeryVeryVeryLong === VeryVeryVeryVeryVeryVeryVeryVeryLong) {
|
||||
}
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
if (this.hasPlugin("dynamicImports") && this.lookahead().type) {
|
||||
}
|
||||
|
@ -77,6 +80,11 @@ if (
|
|||
) {
|
||||
}
|
||||
|
||||
if (
|
||||
VeryVeryVeryVeryVeryVeryVeryVeryLong === VeryVeryVeryVeryVeryVeryVeryVeryLong
|
||||
) {
|
||||
}
|
||||
|
||||
`;
|
||||
|
||||
exports[`inline-object-array.js 1`] = `
|
||||
|
|
|
@ -3,3 +3,6 @@ if (this.hasPlugin("dynamicImports") && this.lookahead().type) {}
|
|||
if (this.hasPlugin("dynamicImports") && this.lookahead().type === tt.parenLeft) {}
|
||||
|
||||
if (this.hasPlugin("dynamicImports") && this.lookahead().type === tt.parenLeft.right) {}
|
||||
|
||||
if (VeryVeryVeryVeryVeryVeryVeryVeryLong === VeryVeryVeryVeryVeryVeryVeryVeryLong) {
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue