Use new eslint package- fix lint issues in ts and js

This commit is contained in:
Jorik Schellekens 2020-06-23 16:41:36 +01:00
parent de227c0650
commit 7699aafcaf
31 changed files with 387 additions and 347 deletions

View file

@ -112,7 +112,7 @@ export class WidgetApi extends EventEmitter {
// Finalization needs to be async, so postpone with a promise
let finalizePromise = Promise.resolve();
const wait = (promise) => {
finalizePromise = finalizePromise.then(value => promise);
finalizePromise = finalizePromise.then(() => promise);
};
this.emit('terminate', wait);
Promise.resolve(finalizePromise).then(() => {