1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +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

@ -78,6 +78,7 @@ export default class JoplinCommands {
* await joplin.commands.execute('newFolder', "SOME_FOLDER_ID");
* ```
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
public async execute(commandName: string, ...args: any[]): Promise<any | void> {
return CommandService.instance().execute(commandName, ...args);
}
@ -107,6 +108,7 @@ export default class JoplinCommands {
if ('iconName' in command) declaration.iconName = command.iconName;
const runtime: CommandRuntime = {
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
execute: (_context: CommandContext, ...args: any[]) => {
return command.execute(...args);
},