@putout/printer
Advanced tools
Comparing version
@@ -6,15 +6,20 @@ 'use strict'; | ||
const isNotJSX = ({parentPath}) => { | ||
if (parentPath.parentPath.isCallExpression()) | ||
const grandPath = parentPath.parentPath; | ||
if (grandPath.isObjectProperty()) | ||
return false; | ||
if (parentPath.parentPath.isJSXElement()) | ||
if (grandPath.isCallExpression()) | ||
return false; | ||
if (parentPath.parentPath.isJSXExpressionContainer()) | ||
if (grandPath.isJSXElement()) | ||
return false; | ||
if (parentPath.parentPath.isJSXFragment()) | ||
if (grandPath.isJSXExpressionContainer()) | ||
return false; | ||
return !parentPath.parentPath.isLogicalExpression(); | ||
if (grandPath.isJSXFragment()) | ||
return false; | ||
return !grandPath.isLogicalExpression(); | ||
}; | ||
@@ -21,0 +26,0 @@ |
{ | ||
"name": "@putout/printer", | ||
"version": "12.1.1", | ||
"version": "12.2.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
245738
0.06%5347
0.06%