@putout/printer
Advanced tools
Comparing version 1.22.0 to 1.23.0
@@ -8,2 +8,3 @@ 'use strict'; | ||
const isIf = (path) => path.parentPath.parentPath.isIfStatement(); | ||
const isParentExpression = (path) => path.parentPath.isExpressionStatement(); | ||
@@ -22,3 +23,3 @@ const isForOf = (path) => { | ||
const {length} = properties; | ||
const parens = isBodyOfArrow(path); | ||
const parens = isParens(path); | ||
const manyLines = !isOneLine(path); | ||
@@ -107,1 +108,11 @@ | ||
} | ||
function isParens(path) { | ||
if (isBodyOfArrow(path)) | ||
return true; | ||
if (isParentExpression(path)) | ||
return true; | ||
return false; | ||
} |
{ | ||
"name": "@putout/printer", | ||
"version": "1.22.0", | ||
"version": "1.23.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
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
65306
1813