Phase 13: Real Lint Gate — type-aware ESLint + Prettier format gate #8
@@ -25,11 +25,15 @@ const {
|
||||
mockLastSyncedUid,
|
||||
mockSetLastSyncedUid,
|
||||
mockFetchSyncStatus,
|
||||
} = vi.hoisted(() => ({
|
||||
mockLastSyncedUid: { value: 'test-uid-123' as string | null },
|
||||
mockSetLastSyncedUid: vi.fn(),
|
||||
mockFetchSyncStatus: vi.fn(),
|
||||
}))
|
||||
} = vi.hoisted(() => {
|
||||
// Declare with explicit type so later null assignments (line 82+) stay type-safe
|
||||
const mockLastSyncedUid: { value: string | null } = { value: 'test-uid-123' }
|
||||
return {
|
||||
mockLastSyncedUid,
|
||||
mockSetLastSyncedUid: vi.fn(),
|
||||
mockFetchSyncStatus: vi.fn(),
|
||||
}
|
||||
})
|
||||
|
||||
vi.mock('../store/calendarStore.js', () => ({
|
||||
useCalendarStore: (selector: (s: Record<string, unknown>) => unknown) => {
|
||||
|
||||
Reference in New Issue
Block a user