@taiga-ui/prettier-config 0.452.0 → 0.454.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/package.json
CHANGED
|
@@ -138,20 +138,28 @@ function collectComments(ast) {
|
|
|
138
138
|
};
|
|
139
139
|
|
|
140
140
|
if (Array.isArray(ast.comments)) {
|
|
141
|
-
ast.comments
|
|
141
|
+
for (const comment of ast.comments) {
|
|
142
|
+
push(comment);
|
|
143
|
+
}
|
|
142
144
|
}
|
|
143
145
|
|
|
144
146
|
visit(ast, (node) => {
|
|
145
147
|
if (Array.isArray(node.comments)) {
|
|
146
|
-
node.comments
|
|
148
|
+
for (const comment of node.comments) {
|
|
149
|
+
push(comment);
|
|
150
|
+
}
|
|
147
151
|
}
|
|
148
152
|
|
|
149
153
|
if (Array.isArray(node.leadingComments)) {
|
|
150
|
-
node.leadingComments
|
|
154
|
+
for (const comment of node.leadingComments) {
|
|
155
|
+
push(comment);
|
|
156
|
+
}
|
|
151
157
|
}
|
|
152
158
|
|
|
153
159
|
if (Array.isArray(node.trailingComments)) {
|
|
154
|
-
node.trailingComments
|
|
160
|
+
for (const comment of node.trailingComments) {
|
|
161
|
+
push(comment);
|
|
162
|
+
}
|
|
155
163
|
}
|
|
156
164
|
});
|
|
157
165
|
|