diff --git a/package.json b/package.json index ff427f9..051e98a 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "build:userscript": "npx ts-extension-builder build type=userscript", "build:extension": "npx ts-extension-builder build type=extension", "dev": "npx ts-extension-builder dev type=userscript", - "lint": "npx eslint --fix src/index.ts" + "lint": "npx eslint --fix src/**/*.ts" }, "type": "commonjs", "dependencies": { diff --git a/src/types/YtAction.ts b/src/types/YtAction.ts index b443eb7..2fdb76e 100644 --- a/src/types/YtAction.ts +++ b/src/types/YtAction.ts @@ -5,8 +5,10 @@ import { export interface YtAction { actionName: string; + // eslint-disable-next-line @typescript-eslint/no-explicit-any args: { 0: T; 1: U; 2: any }; optionalAction: boolean; + // eslint-disable-next-line @typescript-eslint/no-explicit-any returnValue: any; } diff --git a/src/types/YtHistoryLoad.ts b/src/types/YtHistoryLoad.ts index 611ab65..b0e8536 100644 --- a/src/types/YtHistoryLoad.ts +++ b/src/types/YtHistoryLoad.ts @@ -5,7 +5,7 @@ export interface YtHistoryLoad { endpoint?: ArgEndpoint; forward?: boolean; historyEntry?: HistoryEntry; - savedComponentState?: any; + savedComponentState?: never; legacyBorder?: boolean; } @@ -202,7 +202,7 @@ export interface PlayerResponseFrameworkUpdates { } export interface EntityBatchUpdate { - mutations: any[]; + mutations: never[]; timestamp: Timestamp; }