@putout/printer
Advanced tools
Comparing version 10.6.0 to 10.7.0
@@ -19,2 +19,3 @@ 'use strict'; | ||
const {moreThenMaxPropertiesInOneLine} = require('./more-then-max-properties-in-one-line'); | ||
const isInsideFn = (path) => path.parentPath.isFunction(); | ||
@@ -69,3 +70,4 @@ const {maybeTypeAnnotation} = require('../../maybe/maybe-type-annotation'); | ||
maybe.print.newline(is); | ||
const notInsideFn = !isInsideFn(path); | ||
maybe.print.newline(is && notInsideFn); | ||
@@ -93,3 +95,3 @@ for (const [i, property] of properties.entries()) { | ||
maybe.indent(is); | ||
maybe.indent(is && notInsideFn); | ||
maybe.print.breakline(couple); | ||
@@ -96,0 +98,0 @@ |
{ | ||
"name": "@putout/printer", | ||
"version": "10.6.0", | ||
"version": "10.7.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
235205
5151