chore: Enforce consistent type imports via @typescript-eslint/consistent-type-imports (#2545)
This commit is contained in:
committed by
dermotduffy
parent
8f4ebcc0de
commit
7dc29865b8
@@ -2,7 +2,7 @@ import { afterEach, describe, expect, it, vi } from 'vitest';
|
||||
import { mock } from 'vitest-mock-extended';
|
||||
|
||||
import { INTERNAL_CALLBACK_ACTION } from '../../src/config/schema/actions/custom/internal.js';
|
||||
import { ActionConfig } from '../../src/config/schema/actions/types.js';
|
||||
import type { ActionConfig } from '../../src/config/schema/actions/types.js';
|
||||
import {
|
||||
createCallAnswerAction,
|
||||
createCallEndAction,
|
||||
|
||||
@@ -2,10 +2,10 @@ import { describe, expect, it, vi } from 'vitest';
|
||||
|
||||
import {
|
||||
addAudioTracksMuteStateListener,
|
||||
AudioProperties,
|
||||
has2WayAudio,
|
||||
hasAudio,
|
||||
mayHaveAudio,
|
||||
type AudioProperties,
|
||||
} from '../../src/utils/audio';
|
||||
|
||||
// @vitest-environment jsdom
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { afterAll, beforeAll, describe, expect, it, vi } from 'vitest';
|
||||
|
||||
import {
|
||||
AdvancedCameraCardHTMLVideoElement,
|
||||
hideMediaControlsTemporarily,
|
||||
MEDIA_LOAD_CONTROLS_HIDE_SECONDS,
|
||||
setControlsOnVideo,
|
||||
type AdvancedCameraCardHTMLVideoElement,
|
||||
} from '../../src/utils/controls.js';
|
||||
|
||||
// @vitest-environment jsdom
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { HassConfig } from 'home-assistant-js-websocket';
|
||||
import type { HassConfig } from 'home-assistant-js-websocket';
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
|
||||
import { mock } from 'vitest-mock-extended';
|
||||
|
||||
import { DeviceRegistryManager } from '../../src/ha/registry/device';
|
||||
import type { DeviceRegistryManager } from '../../src/ha/registry/device';
|
||||
import { homeAssistantWSRequest } from '../../src/ha/ws-request';
|
||||
import { getLanguage } from '../../src/localize/localize';
|
||||
import { getDiagnostics, getReleaseVersion } from '../../src/utils/diagnostics.js';
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
import EmblaCarousel, { EmblaCarouselType } from 'embla-carousel';
|
||||
import { beforeAll, beforeEach, describe, expect, it, MockedObject, vi } from 'vitest';
|
||||
import EmblaCarousel, { type EmblaCarouselType } from 'embla-carousel';
|
||||
import {
|
||||
beforeAll,
|
||||
beforeEach,
|
||||
describe,
|
||||
expect,
|
||||
it,
|
||||
vi,
|
||||
type MockedObject,
|
||||
} from 'vitest';
|
||||
|
||||
import { CarouselController } from '../../../src/utils/embla/carousel-controller';
|
||||
import {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { EmblaCarouselType, EmblaEventType } from 'embla-carousel';
|
||||
import { EngineType } from 'embla-carousel/components/Engine';
|
||||
import type { EmblaCarouselType, EmblaEventType } from 'embla-carousel';
|
||||
import type { EngineType } from 'embla-carousel/components/Engine';
|
||||
import { vi } from 'vitest';
|
||||
import { mock } from 'vitest-mock-extended';
|
||||
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
import { describe, expect, it, vi } from 'vitest';
|
||||
import { mock } from 'vitest-mock-extended';
|
||||
|
||||
import { ViewItemManager } from '../../src/card-controller/view/item-manager';
|
||||
import type { ViewItemManager } from '../../src/card-controller/view/item-manager';
|
||||
import { RemoveContextViewModifier } from '../../src/card-controller/view/modifiers/remove-context';
|
||||
import { ViewManagerEpoch } from '../../src/card-controller/view/types';
|
||||
import { ViewManager } from '../../src/card-controller/view/view-manager';
|
||||
import type { ViewManagerEpoch } from '../../src/card-controller/view/types';
|
||||
import type { ViewManager } from '../../src/card-controller/view/view-manager';
|
||||
import {
|
||||
downloadMedia,
|
||||
navigateToTimeline,
|
||||
toggleFavorite,
|
||||
toggleReviewed,
|
||||
} from '../../src/utils/media-actions';
|
||||
import { ViewItem, ViewMediaType } from '../../src/view/item';
|
||||
import { QueryResults } from '../../src/view/query-results';
|
||||
import { View } from '../../src/view/view';
|
||||
import { ViewMediaType, type ViewItem } from '../../src/view/item';
|
||||
import type { QueryResults } from '../../src/view/query-results';
|
||||
import type { View } from '../../src/view/view';
|
||||
import { TestViewMedia } from '../test-utils';
|
||||
|
||||
describe('MediaActions', () => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { describe, expect, it, vi } from 'vitest';
|
||||
import { mock } from 'vitest-mock-extended';
|
||||
|
||||
import { MediaLoadedCapabilities, MediaPlayer } from '../../src/types';
|
||||
import type { MediaLoadedCapabilities, MediaPlayer } from '../../src/types';
|
||||
import {
|
||||
createMediaLoadedInfo,
|
||||
dispatchMediaPauseEvent,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { describe, expect, it, vi } from 'vitest';
|
||||
|
||||
import { Capabilities } from '../../src/camera-manager/capabilities';
|
||||
import { AdvancedCameraCardView } from '../../src/config/schema/common/const';
|
||||
import type { AdvancedCameraCardView } from '../../src/config/schema/common/const';
|
||||
import { PTZMovementType } from '../../src/types';
|
||||
import {
|
||||
getPTZTarget,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Task } from '@lit-labs/task';
|
||||
import { html, render, TemplateResult } from 'lit';
|
||||
import type { Task } from '@lit-labs/task';
|
||||
import { html, render, type TemplateResult } from 'lit';
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
|
||||
import { mock } from 'vitest-mock-extended';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Task } from '@lit-labs/task';
|
||||
import { ReactiveControllerHost } from '@lit/reactive-element';
|
||||
import type { ReactiveControllerHost } from '@lit/reactive-element';
|
||||
import { afterEach, assert, describe, expect, it, vi } from 'vitest';
|
||||
import { mock } from 'vitest-mock-extended';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user