mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 03:40:46 +00:00
refactor(lint): enable map spread rule
This commit is contained in:
@@ -2822,12 +2822,13 @@ module.exports = { id: "throws-after-import", register() {} };`,
|
||||
] as const;
|
||||
|
||||
runSinglePluginRegistryScenarios(
|
||||
scenarios.map((scenario) => ({
|
||||
...scenario,
|
||||
body: `module.exports = { id: "${scenario.pluginId}", register(api) {
|
||||
scenarios.map((scenario) =>
|
||||
Object.assign({}, scenario, {
|
||||
body: `module.exports = { id: "${scenario.pluginId}", register(api) {
|
||||
api.registerHttpRoute(${scenario.routeOptions});
|
||||
} };`,
|
||||
})),
|
||||
}),
|
||||
),
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user