@putout/printer 2.17.0 → 2.18.0
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
|
@@ -128,6 +128,10 @@ function notLastPrevVarNotNextVar(path) {
|
|
|
128
128
|
|
|
129
129
|
function isNextCoupleLines(path) {
|
|
130
130
|
const next = path.getNextSibling();
|
|
131
|
+
const prev = path.getPrevSibling();
|
|
132
|
+
|
|
133
|
+
if (path.node.loc?.start.line === prev.node?.loc?.start.line + 2)
|
|
134
|
+
return false;
|
|
131
135
|
|
|
132
136
|
return isCoupleLines(next);
|
|
133
137
|
}
|
|
@@ -171,3 +175,4 @@ const isNextAssign = (path) => {
|
|
|
171
175
|
.get('expression')
|
|
172
176
|
.isAssignmentExpression();
|
|
173
177
|
};
|
|
178
|
+
|
package/package.json
CHANGED