fix: linter issues

This commit is contained in:
K1ngfish3r
2026-04-23 01:04:42 +05:00
parent 5e195b7f53
commit 2396df38bb
111 changed files with 2738 additions and 2160 deletions
+5 -4
View File
@@ -3,12 +3,12 @@ import { toast } from 'sonner';
import { Plugin } from '@/types/plugin';
import { createEpub, downloadBlob } from '@/lib/epub';
interface UseEpubExportOptions {
type UseEpubExportOptions = {
plugin: Plugin.PluginBase | null;
sourceNovel: (Plugin.SourceNovel & { totalPages?: number }) | undefined;
chapters: Plugin.ChapterItem[];
novelPath: string;
}
};
export function useEpubExport({
plugin,
@@ -69,11 +69,12 @@ export function useEpubExport({
description: `0/${allChapters.length} chapters processed`,
});
const chapterContents: Array<{
type Chapter = {
title: string;
content: string;
path: string;
}> = [];
};
const chapterContents: Chapter[] = [];
for (let i = 0; i < allChapters.length; i++) {
const chapter = allChapters[i];
+2 -2
View File
@@ -1,12 +1,12 @@
import { useEffect, useRef, useState } from 'react';
import { Plugin } from '@/types/plugin';
interface UsePluginCustomAssetsReturn {
type UsePluginCustomAssetsReturn = {
customCSSLoaded: boolean;
customJSLoaded: boolean;
customCSSError: boolean;
customJSError: boolean;
}
};
/**
* Custom hook to load and manage plugin custom CSS and JS assets