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

@@ -22,6 +22,7 @@ export interface ApiShare {
master_key_id: string;
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
function formatShareInvitations(invitations: any[]): ShareInvitation[] {
return invitations.map(inv => {
return {
@@ -35,6 +36,7 @@ export default class ShareService {
private static instance_: ShareService;
private api_: JoplinServerApi = null;
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
private store_: Store<any> = null;
private encryptionService_: EncryptionService = null;
private initialized_ = false;
@@ -45,6 +47,7 @@ export default class ShareService {
return this.instance_;
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
public initialize(store: Store<any>, encryptionService: EncryptionService, api: JoplinServerApi = null) {
this.initialized_ = true;
this.store_ = store;
@@ -57,6 +60,7 @@ export default class ShareService {
return [9, 10].includes(Setting.value('sync.target')); // Joplin Server, Joplin Cloud targets
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
private get store(): Store<any> {
return this.store_;
}