@putout/printer
Advanced tools
Comparing version 8.25.0 to 8.26.0
@@ -46,2 +46,3 @@ 'use strict'; | ||
const isBooleanAndSimple = ([a, b]) => isBooleanLiteral(a) && isSimple(b); | ||
const isBooleanAndObject = ([a, b]) => isBooleanLiteral(a) && isObjectExpression(b); | ||
const isNullAndSimple = ([a, b]) => isNullLiteral(a) && isSimple(b); | ||
@@ -262,2 +263,5 @@ const isSimpleAndObject = ([a, b]) => isSimple(a) && isObjectExpression(b); | ||
if (isBooleanAndObject(elements)) | ||
return true; | ||
if (isInsideCallLoop(path)) | ||
@@ -264,0 +268,0 @@ return false; |
@@ -56,3 +56,4 @@ 'use strict'; | ||
maybe.indent.inc(isMemberExpressionCallee(path)); | ||
const memberCallee = isMemberExpressionCallee(path); | ||
maybe.indent.inc(memberCallee); | ||
@@ -98,3 +99,3 @@ for (const [index, property] of properties.entries()) { | ||
maybe.indent.dec(isMemberExpressionCallee(path)); | ||
maybe.indent.dec(memberCallee); | ||
}; | ||
@@ -101,0 +102,0 @@ |
@@ -171,2 +171,3 @@ 'use strict'; | ||
}); | ||
const moreCount = moreThenMaxPropertiesInOneLine(path, { | ||
@@ -173,0 +174,0 @@ maxPropertiesInOneLine, |
{ | ||
"name": "@putout/printer", | ||
"version": "8.25.0", | ||
"version": "8.26.0", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", |
@@ -299,3 +299,3 @@ # Printer [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL] | ||
```js | ||
const {readFileSync} = require('fs'); | ||
const {readFileSync} = require('node:fs'); | ||
@@ -302,0 +302,0 @@ const putout = require('putout'); |
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
216836
4813