From f2320d943b5ca2cee5b20f5a689e0ef915315b36 Mon Sep 17 00:00:00 2001 From: yakisova41 Date: Tue, 2 Apr 2024 01:05:13 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20lint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/types/YtAction.ts | 2 ++ src/types/YtHistoryLoad.ts | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) 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; }