refactor(lint): enable map spread rule

This commit is contained in:
Peter Steinberger
2026-04-18 19:53:02 +01:00
parent 0c245c35c5
commit 4fa961d4f1
73 changed files with 352 additions and 344 deletions

View File

@@ -449,10 +449,11 @@ export function discoverBundledPluginRuntimeDeps(params = {}) {
}
return [...deps.values()]
.map((dep) => ({
...dep,
pluginIds: [...dep.pluginIds].toSorted((a, b) => a.localeCompare(b)),
}))
.map((dep) =>
Object.assign({}, dep, {
pluginIds: [...dep.pluginIds].toSorted((a, b) => a.localeCompare(b)),
}),
)
.toSorted((a, b) => a.name.localeCompare(b.name));
}