Narrow linting rules and fix for eslintrc for js files

This commit is contained in:
hensm
2022-04-27 22:28:38 +01:00
parent 5e2d9a2fbc
commit dececa46c3
27 changed files with 298 additions and 246 deletions

View File

@@ -72,8 +72,6 @@ export default class Session extends CastClient {
this.establishAppConnection(this.transportId);
this.onSessionCreated?.(this.sessionId);
const { friendlyName } = this.receiverDevice;
messaging.sendMessage({
subject: "cast:sessionCreated",
data: {

View File

@@ -3,7 +3,7 @@
import messaging, { Message } from "../../messaging";
import Session from "./Session";
import CastClient, { NS_CONNECTION, NS_RECEIVER } from "./client";
import CastClient from "./client";
const sessions = new Map<string, Session>();

View File

@@ -125,7 +125,7 @@ interface BreakClip {
contentId?: string;
contentType?: string;
contentUrl?: string;
customData?: {};
customData?: unknown;
duration?: number;
id: string;
hlsSegmentFormat?: HlsSegmentFormat;
@@ -137,7 +137,7 @@ interface BreakClip {
interface TextTrackStyle {
backgroundColor: Nullable<string>;
customData: any;
customData: unknown;
edgeColor: Nullable<string>;
edgeType: Nullable<string>;
fontFamily: Nullable<string>;
@@ -151,7 +151,7 @@ interface TextTrackStyle {
}
interface Track {
customData: any;
customData: unknown;
language: Nullable<string>;
name: Nullable<string>;
subtype: Nullable<string>;
@@ -162,7 +162,7 @@ interface Track {
}
interface UserActionState {
customData: any;
customData: unknown;
userAction: UserAction;
}
@@ -185,7 +185,7 @@ interface MediaInformation {
contentId: string;
contentType: string;
contentUrl?: string;
customData: any;
customData: unknown;
duration: Nullable<number>;
entity?: string;
hlsSegmentFormat?: HlsSegmentFormat;
@@ -269,7 +269,7 @@ interface PhotoMediaMetadata {
interface QueueItem {
activeTrackIds: Nullable<number[]>;
autoplay: boolean;
customData: any;
customData: unknown;
itemId: Nullable<number>;
media: MediaInformation;
playbackDuration: Nullable<number>;