@putout/printer
Advanced tools
Comparing version 1.49.1 to 1.50.0
@@ -24,2 +24,5 @@ 'use strict'; | ||
const isOneElementCall = (path, {elements}) => path.parentPath.isCallExpression() && elements.length === 1; | ||
const isTwoElementReturn = (path, {elements}) => path.parentPath.isReturnStatement() && elements.length === 2; | ||
const isTwoLongStrings = ([a, b]) => { | ||
@@ -176,8 +179,11 @@ const LONG_STRING = 20; | ||
function isNewlineBetweenElements(path, {elements}) { | ||
if (isIncreaseIndent(path)) | ||
if (isTwoElementReturn(path, {elements})) | ||
return false; | ||
if (isInsideCallLoop(path)) | ||
if (isOneElementCall(path, {elements})) | ||
return false; | ||
if (isIncreaseIndent(path)) | ||
return false; | ||
if (isInsideLoop(path)) | ||
@@ -184,0 +190,0 @@ return false; |
{ | ||
"name": "@putout/printer", | ||
"version": "1.49.1", | ||
"version": "1.50.0", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", |
Sorry, the diff of this file is not supported yet
85896
2328