You've already forked joplin
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:
@ -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);
|
||||
},
|
||||
|
Reference in New Issue
Block a user