chore: Enforce consistent type imports via @typescript-eslint/consistent-type-imports (#2545)
This commit is contained in:
committed by
dermotduffy
parent
8f4ebcc0de
commit
7dc29865b8
@@ -9,7 +9,14 @@
|
||||
// available as compilation time.
|
||||
// ====================================================================
|
||||
|
||||
import { css, CSSResultGroup, html, nothing, PropertyValues, unsafeCSS } from 'lit';
|
||||
import {
|
||||
css,
|
||||
html,
|
||||
nothing,
|
||||
unsafeCSS,
|
||||
type CSSResultGroup,
|
||||
type PropertyValues,
|
||||
} from 'lit';
|
||||
import { customElement, property } from 'lit/decorators.js';
|
||||
import { query } from 'lit/decorators/query.js';
|
||||
|
||||
@@ -18,7 +25,7 @@ import { MediaLoadedInfoSourceController } from '../components-lib/media-loaded-
|
||||
import '../components/image-player.js';
|
||||
|
||||
import liveHAComponentsStyle from '../scss/live-ha-components.scss';
|
||||
import {
|
||||
import type {
|
||||
MediaLoadedInfo,
|
||||
MediaLoadedInfoEventDetail,
|
||||
MediaPlayer,
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
// available as compilation time.
|
||||
// ====================================================================
|
||||
|
||||
import { css, CSSResultGroup, html, TemplateResult, unsafeCSS } from 'lit';
|
||||
import { css, html, unsafeCSS, type CSSResultGroup, type TemplateResult } from 'lit';
|
||||
import { customElement, property } from 'lit/decorators.js';
|
||||
import { query } from 'lit/decorators/query.js';
|
||||
|
||||
@@ -18,7 +18,7 @@ import { MediaLoadedInfoSourceController } from '../components-lib/media-loaded-
|
||||
import { VideoMediaPlayerController } from '../components-lib/media-player/video.js';
|
||||
import { renderNotificationBlockFromText } from '../components/notification/block.js';
|
||||
import liveHAComponentsStyle from '../scss/live-ha-components.scss';
|
||||
import { MediaPlayer, MediaPlayerController } from '../types.js';
|
||||
import type { MediaPlayer, MediaPlayerController } from '../types.js';
|
||||
import { mayHaveAudio } from '../utils/audio.js';
|
||||
import { errorToConsole } from '../utils/basic.js';
|
||||
import {
|
||||
@@ -31,7 +31,7 @@ import {
|
||||
dispatchMediaPlayEvent,
|
||||
dispatchMediaVolumeChangeEvent,
|
||||
} from '../utils/media-info.js';
|
||||
import { ConstructableLitElement } from './types.js';
|
||||
import type { ConstructableLitElement } from './types.js';
|
||||
|
||||
void customElements.whenDefined('ha-hls-player').then(() => {
|
||||
const HaHlsPlayer = customElements.get('ha-hls-player') as ConstructableLitElement;
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
// available as compilation time.
|
||||
// ====================================================================
|
||||
|
||||
import { css, CSSResultGroup, html, TemplateResult, unsafeCSS } from 'lit';
|
||||
import { css, html, unsafeCSS, type CSSResultGroup, type TemplateResult } from 'lit';
|
||||
import { customElement, property } from 'lit/decorators.js';
|
||||
import { ifDefined } from 'lit/directives/if-defined.js';
|
||||
|
||||
@@ -18,11 +18,11 @@ import { MediaLoadedInfoSourceController } from '../components-lib/media-loaded-
|
||||
import { VideoMediaPlayerController } from '../components-lib/media-player/video.js';
|
||||
import { renderNotificationBlockFromText } from '../components/notification/block.js';
|
||||
import liveHAComponentsStyle from '../scss/live-ha-components.scss';
|
||||
import { MediaPlayer, MediaPlayerController } from '../types.js';
|
||||
import type { MediaPlayer, MediaPlayerController } from '../types.js';
|
||||
import {
|
||||
addAudioTracksMuteStateListener,
|
||||
AudioTracksMuteStateCleanup,
|
||||
hasAudio,
|
||||
type AudioTracksMuteStateCleanup,
|
||||
} from '../utils/audio.js';
|
||||
import {
|
||||
hideMediaControlsTemporarily,
|
||||
@@ -34,7 +34,7 @@ import {
|
||||
dispatchMediaPlayEvent,
|
||||
dispatchMediaVolumeChangeEvent,
|
||||
} from '../utils/media-info.js';
|
||||
import { ConstructableLitElement } from './types.js';
|
||||
import type { ConstructableLitElement } from './types.js';
|
||||
|
||||
void customElements.whenDefined('ha-web-rtc-player').then(() => {
|
||||
const HaWebRtcPlayer = customElements.get(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { LitElement } from 'lit';
|
||||
import type { LitElement } from 'lit';
|
||||
|
||||
export interface ConstructableLitElement {
|
||||
new (...args: unknown[]): LitElement;
|
||||
|
||||
Reference in New Issue
Block a user