Skip to content

Commit 204d48c

Browse files
committed
fix: resolve lint errors in hook refactor
- Remove unused imports from App.tsx - Use proper type import in test file _Generated with `mux`_
1 parent dfeb512 commit 204d48c

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

src/App.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,7 @@ import { buildCoreSources, type BuildSourcesParams } from "./utils/commands/sour
2626
import type { ThinkingLevel } from "./types/thinking";
2727
import { CUSTOM_EVENTS } from "./constants/events";
2828
import { isWorkspaceForkSwitchEvent } from "./utils/workspaceFork";
29-
import {
30-
getThinkingLevelKey,
31-
getRuntimeKey,
32-
getInputKey,
33-
getPendingScopeId,
34-
getModelKey,
35-
getProjectScopeId,
36-
getTrunkBranchKey,
37-
} from "./constants/storage";
29+
import { getThinkingLevelKey } from "./constants/storage";
3830
import type { BranchListResult } from "./types/ipc";
3931
import { useTelemetry } from "./hooks/useTelemetry";
4032
import { useStartWorkspaceCreation, getFirstProjectPath } from "./hooks/useStartWorkspaceCreation";

src/hooks/useStartWorkspaceCreation.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ import {
1515
} from "@/constants/storage";
1616
import type { ProjectConfig } from "@/config";
1717

18-
type PersistFn = typeof import("@/hooks/usePersistedState").updatePersistedState;
18+
import type { updatePersistedState } from "@/hooks/usePersistedState";
19+
20+
type PersistFn = typeof updatePersistedState;
1921
type PersistCall = [string, unknown, unknown?];
2022

2123
describe("normalizeRuntimePreference", () => {

0 commit comments

Comments
 (0)