@putout/printer
Advanced tools
Comparing version 1.70.2 to 1.70.3
@@ -8,2 +8,4 @@ 'use strict'; | ||
noTrailingComment, | ||
isNewlineBetweenSiblings, | ||
} = require('../is'); | ||
@@ -54,2 +56,3 @@ | ||
maybe.print.newline(manyLines && noTrailingComment(property)); | ||
maybe.print.linebreak(isNewlineBetweenSiblings(property)); | ||
} | ||
@@ -56,0 +59,0 @@ |
@@ -71,3 +71,3 @@ 'use strict'; | ||
module.exports.isNewlineBetweenStatements = (path) => { | ||
module.exports.isNewlineBetweenSiblings = (path) => { | ||
const endCurrent = path.node?.loc?.end?.line; | ||
@@ -74,0 +74,0 @@ const startNext = path.getNextSibling().node?.loc?.start?.line; |
'use strict'; | ||
const {isNewlineBetweenStatements} = require('../is'); | ||
const {isNewlineBetweenSiblings} = require('../is'); | ||
const { | ||
@@ -69,3 +69,3 @@ markAfter, | ||
return isNewlineBetweenStatements(path); | ||
return isNewlineBetweenSiblings(path); | ||
}, | ||
@@ -72,0 +72,0 @@ after(path, {print}) { |
@@ -8,3 +8,3 @@ 'use strict'; | ||
isParentLast, | ||
isNewlineBetweenStatements, | ||
isNewlineBetweenSiblings, | ||
satisfy, | ||
@@ -14,3 +14,3 @@ } = require('../is'); | ||
const shouldBreakline = satisfy([ | ||
isNewlineBetweenStatements, | ||
isNewlineBetweenSiblings, | ||
isNotLastBody, | ||
@@ -17,0 +17,0 @@ isStrictMode, |
@@ -6,3 +6,3 @@ 'use strict'; | ||
isCoupleLines, | ||
isNewlineBetweenStatements, | ||
isNewlineBetweenSiblings, | ||
} = require('../is'); | ||
@@ -46,3 +46,3 @@ | ||
notLastPrevVarNotNextVar, | ||
isNewlineBetweenStatements, | ||
isNewlineBetweenSiblings, | ||
notLastParentExport, | ||
@@ -49,0 +49,0 @@ ], |
{ | ||
"name": "@putout/printer", | ||
"version": "1.70.2", | ||
"version": "1.70.3", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
100863
2654