chore(lint): no-map-spread replace with Object.assign

Replace { ...obj, override } inside map callbacks with Object.assign({}, obj, { override })
to satisfy oxc/no-map-spread. Preserves copy-on-write semantics.
This commit is contained in:
Mohamed Boudra
2026-04-24 07:11:26 +07:00
parent 94913bd3b5
commit c4355a13ff
12 changed files with 39 additions and 46 deletions

View File

@@ -109,11 +109,10 @@ function parseChangelog(changelogText) {
notesParts.push("", ...bodyLines);
}
return {
...heading,
return Object.assign({}, heading, {
tag: `v${heading.version}`,
notes: `${notesParts.join("\n").trim()}\n`,
};
});
});
}