style(sandbox): fix linting errors
- Remove unused normalizeOptions function - Fix line length violations (format long lines) - Fix import order (alphabetical) - Format function signatures for readability All lint checks now passing.
This commit is contained in:
committed by
Peter Steinberger
parent
b0c97d6178
commit
7f02b62bba
@@ -58,7 +58,10 @@ Modifiers:
|
||||
};
|
||||
|
||||
function createRunner(
|
||||
commandFn: (opts: CommandOptions, runtime: typeof defaultRuntime) => Promise<void>,
|
||||
commandFn: (
|
||||
opts: CommandOptions,
|
||||
runtime: typeof defaultRuntime,
|
||||
) => Promise<void>,
|
||||
) {
|
||||
return async (opts: CommandOptions) => {
|
||||
try {
|
||||
@@ -70,14 +73,6 @@ function createRunner(
|
||||
};
|
||||
}
|
||||
|
||||
function normalizeOptions(opts: CommandOptions): CommandOptions {
|
||||
const normalized: CommandOptions = {};
|
||||
for (const [key, value] of Object.entries(opts)) {
|
||||
normalized[key] = typeof value === "boolean" ? value : value;
|
||||
}
|
||||
return normalized;
|
||||
}
|
||||
|
||||
// --- Registration ---
|
||||
|
||||
export function registerSandboxCli(program: Command) {
|
||||
|
||||
Reference in New Issue
Block a user