Okay, let's clarify more.

linter helps the code be more readable, diagnose and fix technical issues, ...

Before:

import { Login } from "../model/message.model"

joplin.plugins.register({
[space]onStart: async function () {
		console.info('Email Plugin Started!');
		await app.init();
	},
});

After:

import {Login} from '../model/message.model';

joplin.plugins.register({
[tab]onStart: async function() {
        console.info('Email Plugin Started!');
        await app.init();
    },
});

I used an annotated type void in the promise to annotate that the promise doesn't return any value when resolved.

Before:

return new Promise((resolve, reject) => {

After:

return new Promise<void>((resolve, reject) => {
1 Like