1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

Tools: Implement @typescript-eslint/no-explicit-any rule

This commit is contained in:
Laurent Cozic
2024-04-05 12:16:49 +01:00
parent 42900bcc66
commit 2e2a2b3193
654 changed files with 2971 additions and 170 deletions

View File

@@ -35,6 +35,7 @@ const selfClosingElements = [
class HtmlUtils {
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
public headAndBodyHtml(doc: any) {
const output = [];
if (doc.head) output.push(doc.head.innerHTML);
@@ -87,6 +88,7 @@ class HtmlUtils {
// eslint-disable-next-line @typescript-eslint/ban-types -- Old code before rule was applied
public replaceImageUrls(html: string, callback: Function) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
return this.processImageTags(html, (data: any) => {
const newSrc = callback(data.src);
return {
@@ -159,6 +161,7 @@ class HtmlUtils {
});
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
public attributesHtml(attr: any) {
const output = [];