mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
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:
@@ -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`,
|
||||
};
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user