chore: Enforce consistent type imports via @typescript-eslint/consistent-type-imports (#2545)

This commit is contained in:
Dermot Duffy
2026-06-30 17:45:13 -07:00
committed by dermotduffy
parent 8f4ebcc0de
commit 7dc29865b8
589 changed files with 2419 additions and 2103 deletions
+4 -4
View File
@@ -1,13 +1,13 @@
import { createNotificationFromText } from '../../components-lib/notification/factory';
import { ConditionStateChange } from '../../condition-trigger/conditions/types';
import type { ConditionStateChange } from '../../condition-trigger/conditions/types';
import { localize } from '../../localize/localize';
import { Timer } from '../../utils/timer';
import { getStreamCameraID } from '../../view/substream';
import { View } from '../../view/view';
import { CardCallAPI } from '../types';
import type { View } from '../../view/view';
import type { CardCallAPI } from '../types';
import { SubstreamViewModifier } from '../view/modifiers/substream';
import { Ringtone } from './ringtone';
import { CallSession } from './types';
import type { CallSession } from './types';
export class CallManager {
private _api: CardCallAPI;
+2 -2
View File
@@ -1,9 +1,9 @@
import { RingtoneConfig } from '../../config/schema/live';
import type { RingtoneConfig } from '../../config/schema/live';
import { ArpeggioTone } from './tones/arpeggio';
import { ChimeTone } from './tones/chime';
import { CustomTone } from './tones/custom';
import { MelodyTone } from './tones/melody';
import { Tone } from './tones/types';
import type { Tone } from './tones/types';
import { WestminsterTone } from './tones/westminster';
// Module-level singleton lock: only one `Ringtone` plays at a time across all
+1 -1
View File
@@ -1,4 +1,4 @@
import { BellStrikeOptions, BellTone } from './bell';
import { BellTone, type BellStrikeOptions } from './bell';
const PLUCK: BellStrikeOptions = {
sparklePeak: 0.05,
+1 -1
View File
@@ -1,5 +1,5 @@
import { Timer } from '../../../utils/timer';
import { RingtoneFinishedHandler, Tone, ToneEnvelope } from './types';
import type { RingtoneFinishedHandler, Tone, ToneEnvelope } from './types';
// Shared scaffolding for tones generated via the Web Audio API: owns the
// AudioContext lifecycle, the repeat timer, and the bell-shaped note envelope.
+1 -1
View File
@@ -1,4 +1,4 @@
import { RingtoneFinishedHandler, Tone } from './types';
import type { RingtoneFinishedHandler, Tone } from './types';
export class CustomTone implements Tone {
private _audio: HTMLAudioElement | null = null;
+1 -1
View File
@@ -1,4 +1,4 @@
import { View } from '../../view/view';
import type { View } from '../../view/view';
export interface CallSession {
// The camera that owns the call.