@putout/printer 18.20.0 → 18.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ChangeLog
CHANGED
|
@@ -20,6 +20,7 @@ const {
|
|
|
20
20
|
isTemplateLiteral,
|
|
21
21
|
isExpressionStatement,
|
|
22
22
|
isStatement,
|
|
23
|
+
isBooleanLiteral,
|
|
23
24
|
} = types;
|
|
24
25
|
|
|
25
26
|
function isNotLastOrParentLast(path) {
|
|
@@ -99,6 +100,9 @@ export function isNextSimpleWithLeadingComments(path) {
|
|
|
99
100
|
|
|
100
101
|
const {expression} = next.node;
|
|
101
102
|
|
|
103
|
+
if (isBooleanLiteral(expression))
|
|
104
|
+
return true;
|
|
105
|
+
|
|
102
106
|
if (isStringLiteral(expression))
|
|
103
107
|
return true;
|
|
104
108
|
|
|
@@ -127,3 +131,4 @@ export const afterIf = createTypeChecker([
|
|
|
127
131
|
['+', satisfyAfter],
|
|
128
132
|
['+', isBeforeElse],
|
|
129
133
|
]);
|
|
134
|
+
|
package/package.json
CHANGED