1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +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

@@ -74,9 +74,11 @@ export default class NoteResource extends BaseModel {
public static async associatedNoteIds(resourceId: string): Promise<string[]> {
const rows = await this.modelSelectAll('SELECT note_id FROM note_resources WHERE resource_id = ? AND is_associated = 1', [resourceId]);
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
return rows.map((r: any) => r.note_id);
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
public static async associatedResourceNotes(resourceIds: string[], options: LoadOptions = null): Promise<Record<string, any>> {
if (!resourceIds.length) return {};
@@ -168,6 +170,7 @@ export default class NoteResource extends BaseModel {
`,
[cutOffTime],
);
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
return output.map((r: any) => r.resource_id);
}