refactor(editor): Stricter linting for promises and async functions (no-changelog) (#4642)

This commit is contained in:
Michael Kret
2023-05-10 18:10:03 +03:00
committed by GitHub
parent 1b1dc0e655
commit ed3bc154b0
114 changed files with 351 additions and 344 deletions

View File

@@ -259,7 +259,7 @@ export default mixins(showMessage).extend({
this.loading = true;
const saveWorkflowPromise = () => {
const saveWorkflowPromise = async () => {
return new Promise<string>((resolve) => {
if (this.workflow.id === PLACEHOLDER_EMPTY_WORKFLOW_ID) {
nodeViewEventBus.emit('saveWorkflow', () => {
@@ -399,7 +399,7 @@ export default mixins(showMessage).extend({
},
onRoleAction(user: IUser, action: string) {
if (action === 'remove') {
this.onRemoveSharee(user.id);
void this.onRemoveSharee(user.id);
}
},
async onCloseModal() {
@@ -413,7 +413,7 @@ export default mixins(showMessage).extend({
);
if (shouldSave) {
return await this.onSave();
return this.onSave();
}
}
@@ -457,7 +457,7 @@ export default mixins(showMessage).extend({
},
},
mounted() {
this.initialize();
void this.initialize();
},
watch: {
workflow(workflow) {