mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 13:10:43 +00:00
refactor(lint): enable map spread rule
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user