chore: Enforce consistent type imports via @typescript-eslint/consistent-type-imports (#2545)
This commit is contained in:
committed by
dermotduffy
parent
8f4ebcc0de
commit
7dc29865b8
@@ -1,17 +1,17 @@
|
||||
// @vitest-environment jsdom
|
||||
|
||||
import { PartialDeep } from 'type-fest';
|
||||
import type { PartialDeep } from 'type-fest';
|
||||
import { assert, beforeEach, describe, expect, it, vi } from 'vitest';
|
||||
import { mock } from 'vitest-mock-extended';
|
||||
|
||||
import { CameraManagerStore } from '../../../src/camera-manager/store';
|
||||
import type { CameraManagerStore } from '../../../src/camera-manager/store';
|
||||
import { CallManager } from '../../../src/card-controller/call/manager';
|
||||
import { Ringtone } from '../../../src/card-controller/call/ringtone';
|
||||
import { CardController } from '../../../src/card-controller/controller';
|
||||
import type { CardController } from '../../../src/card-controller/controller';
|
||||
import { SubstreamViewModifier } from '../../../src/card-controller/view/modifiers/substream';
|
||||
import { ConditionStateChange } from '../../../src/condition-trigger/conditions/types';
|
||||
import { RingtoneConfig } from '../../../src/config/schema/live';
|
||||
import { AdvancedCameraCardConfig } from '../../../src/config/schema/types';
|
||||
import type { ConditionStateChange } from '../../../src/condition-trigger/conditions/types';
|
||||
import type { RingtoneConfig } from '../../../src/config/schema/live';
|
||||
import type { AdvancedCameraCardConfig } from '../../../src/config/schema/types';
|
||||
import { View } from '../../../src/view/view';
|
||||
import {
|
||||
createCameraConfig,
|
||||
|
||||
@@ -9,7 +9,7 @@ import { ChimeTone } from '../../../src/card-controller/call/tones/chime';
|
||||
import { CustomTone } from '../../../src/card-controller/call/tones/custom';
|
||||
import { MelodyTone } from '../../../src/card-controller/call/tones/melody';
|
||||
import { WestminsterTone } from '../../../src/card-controller/call/tones/westminster';
|
||||
import { RingtoneConfig } from '../../../src/config/schema/live';
|
||||
import type { RingtoneConfig } from '../../../src/config/schema/live';
|
||||
|
||||
// Each tone constructor returns a fresh `mock<>()` per `new` call; the mock
|
||||
// implementation persists across `vi.clearAllMocks()` (which only clears call
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { afterEach, beforeEach, describe, expect, it, Mock, vi } from 'vitest';
|
||||
import { afterEach, beforeEach, describe, expect, it, vi, type Mock } from 'vitest';
|
||||
|
||||
import { CustomTone } from '../../../../src/card-controller/call/tones/custom';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { afterEach, beforeEach, Mock, vi } from 'vitest';
|
||||
import { mock, MockProxy } from 'vitest-mock-extended';
|
||||
import { afterEach, beforeEach, vi, type Mock } from 'vitest';
|
||||
import { mock, type MockProxy } from 'vitest-mock-extended';
|
||||
|
||||
// Type-safe Web Audio API mocks for tone tests. The real `GeneratedTone`
|
||||
// constructs an AudioContext directly; here we stub the global `AudioContext`
|
||||
|
||||
Reference in New Issue
Block a user