@putout/printer
Advanced tools
Comparing version 12.30.0 to 12.31.0
@@ -11,7 +11,8 @@ 'use strict'; | ||
const {leadingComments} = path.node; | ||
const leadingCommentsCount = leadingComments?.length; | ||
maybe.write.space(!leadingComments && isInsideArrow(path)); | ||
maybe.write.space(!leadingCommentsCount && isInsideArrow(path)); | ||
indent.inc(); | ||
if (!leadingComments?.length) { | ||
if (!leadingCommentsCount) { | ||
write('('); | ||
@@ -18,0 +19,0 @@ write.newline(); |
{ | ||
"name": "@putout/printer", | ||
"version": "12.30.0", | ||
"version": "12.31.0", | ||
"type": "commonjs", | ||
@@ -72,3 +72,3 @@ "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", | ||
"@putout/plugin-promises": "^16.0.0", | ||
"@putout/plugin-react-hook-form": "^4.0.0", | ||
"@putout/plugin-react-hook-form": "^5.0.0", | ||
"@putout/plugin-react-hooks": "^6.0.0", | ||
@@ -75,0 +75,0 @@ "acorn": "^8.8.2", |
Sorry, the diff of this file is not supported yet
261094
5684