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
+7 -7
View File
@@ -17,7 +17,7 @@ export type NovelCoolMetadata = {
options: NovelCoolOptions;
};
class NovelCoolPlugin implements Plugin.PluginBase {
export class NovelCoolPlugin implements Plugin.PluginBase {
id: string;
name: string;
icon: string;
@@ -78,7 +78,7 @@ class NovelCoolPlugin implements Plugin.PluginBase {
page_size: '20',
}).toString(),
},
).then(res => res.json());
).then((res: Response) => res.json());
const novels: Plugin.NovelItem[] = [];
list.forEach(novel =>
@@ -110,7 +110,7 @@ class NovelCoolPlugin implements Plugin.PluginBase {
lang: this.options.langCode,
}).toString(),
},
).then(res => res.json());
).then((res: Response) => res.json());
const novel: Plugin.SourceNovel = {
path: novelPath,
@@ -142,7 +142,7 @@ class NovelCoolPlugin implements Plugin.PluginBase {
lang: this.options.langCode,
}).toString(),
},
).then(res => res.json());
).then((res: Response) => res.json());
list.forEach(chapter => {
if (!chapter.is_locked) {
@@ -179,7 +179,7 @@ class NovelCoolPlugin implements Plugin.PluginBase {
lang: this.options.langCode,
}).toString(),
},
).then(res => res.json());
).then((res: Response) => res.json());
return info.content;
}
@@ -207,7 +207,7 @@ class NovelCoolPlugin implements Plugin.PluginBase {
page_size: '20',
}).toString(),
},
).then(res => res.json());
).then((res: Response) => res.json());
const novels: Plugin.NovelItem[] = [];
list.forEach(novel =>
@@ -266,7 +266,7 @@ type Novel = {
last_url?: string;
category_str: string;
category_list: string[];
star_list: any[];
// star_list: any[];
int_mark: string;
time: string;
show_ads: string;