mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-28 05:16:23 -06:00
chore(lint): enable stricter oxlint rules
This commit is contained in:
@@ -69,12 +69,12 @@ vi.mock("../commands/configure.js", () => ({
|
||||
],
|
||||
configureCommand: programMocks.configureCommand,
|
||||
configureCommandWithSections: programMocks.configureCommandWithSections,
|
||||
configureCommandFromSectionsArg: (sections: unknown, runtime: unknown) => {
|
||||
configureCommandFromSectionsArg: (sections: unknown, runtimeLocal: unknown) => {
|
||||
const resolved = Array.isArray(sections) ? sections : [];
|
||||
if (resolved.length > 0) {
|
||||
return programMocks.configureCommandWithSections(resolved, runtime);
|
||||
return programMocks.configureCommandWithSections(resolved, runtimeLocal);
|
||||
}
|
||||
return programMocks.configureCommand({}, runtime);
|
||||
return programMocks.configureCommand({}, runtimeLocal);
|
||||
},
|
||||
}));
|
||||
vi.mock("../commands/setup.js", () => ({ setupCommand: programMocks.setupCommand }));
|
||||
|
||||
Reference in New Issue
Block a user