refactor(editor): Stricter linting for promises and async functions (no-changelog) (#4642)
This commit is contained in:
@@ -50,12 +50,12 @@
|
||||
import mixins from 'vue-typed-mixins';
|
||||
import { EnterpriseEditionFeature } from '@/constants';
|
||||
import { showMessage } from '@/mixins/showMessage';
|
||||
import { useLogStreamingStore } from '../../stores/logStreaming.store';
|
||||
import { useLogStreamingStore } from '@/stores/logStreaming.store';
|
||||
import type { PropType } from 'vue';
|
||||
import { mapStores } from 'pinia';
|
||||
import type { MessageEventBusDestinationOptions } from 'n8n-workflow';
|
||||
import { deepCopy, defaultMessageEventBusDestinationOptions } from 'n8n-workflow';
|
||||
import type { BaseTextKey } from '../../plugins/i18n';
|
||||
import type { BaseTextKey } from '@/plugins/i18n';
|
||||
import type { EventBus } from '@/event-bus';
|
||||
|
||||
export const DESTINATION_LIST_ITEM_ACTIONS = {
|
||||
@@ -139,7 +139,7 @@ export default mixins(showMessage).extend({
|
||||
},
|
||||
onEnabledSwitched(state: boolean, destinationId: string) {
|
||||
this.nodeParameters.enabled = state;
|
||||
this.saveDestination();
|
||||
void this.saveDestination();
|
||||
},
|
||||
async saveDestination() {
|
||||
await this.logStreamingStore.saveDestination(this.nodeParameters);
|
||||
|
||||
@@ -175,12 +175,12 @@
|
||||
import { get, set, unset } from 'lodash-es';
|
||||
import { mapStores } from 'pinia';
|
||||
import mixins from 'vue-typed-mixins';
|
||||
import { useLogStreamingStore } from '../../stores/logStreaming.store';
|
||||
import { useNDVStore } from '../../stores/ndv.store';
|
||||
import { useWorkflowsStore } from '../../stores/workflows.store';
|
||||
import { useLogStreamingStore } from '@/stores/logStreaming.store';
|
||||
import { useNDVStore } from '@/stores/ndv.store';
|
||||
import { useWorkflowsStore } from '@/stores/workflows.store';
|
||||
import ParameterInputList from '@/components/ParameterInputList.vue';
|
||||
import NodeCredentials from '@/components/NodeCredentials.vue';
|
||||
import type { IMenuItem, INodeUi, ITab, IUpdateInformation } from '../../Interface';
|
||||
import type { IMenuItem, INodeUi, ITab, IUpdateInformation } from '@/Interface';
|
||||
import type {
|
||||
IDataObject,
|
||||
INodeCredentials,
|
||||
@@ -197,18 +197,18 @@ import {
|
||||
} from 'n8n-workflow';
|
||||
import type { PropType } from 'vue';
|
||||
import Vue from 'vue';
|
||||
import { LOG_STREAM_MODAL_KEY } from '../../constants';
|
||||
import { LOG_STREAM_MODAL_KEY } from '@/constants';
|
||||
import Modal from '@/components/Modal.vue';
|
||||
import { showMessage } from '@/mixins/showMessage';
|
||||
import { useUIStore } from '../../stores/ui.store';
|
||||
import { useUsersStore } from '../../stores/users.store';
|
||||
import { useUIStore } from '@/stores/ui.store';
|
||||
import { useUsersStore } from '@/stores/users.store';
|
||||
import { destinationToFakeINodeUi } from './Helpers.ee';
|
||||
import {
|
||||
webhookModalDescription,
|
||||
sentryModalDescription,
|
||||
syslogModalDescription,
|
||||
} from './descriptions.ee';
|
||||
import type { BaseTextKey } from '../../plugins/i18n';
|
||||
import type { BaseTextKey } from '@/plugins/i18n';
|
||||
import InlineNameEdit from '../InlineNameEdit.vue';
|
||||
import SaveButton from '../SaveButton.vue';
|
||||
import EventSelection from '@/components/SettingsLogStreaming/EventSelection.ee.vue';
|
||||
|
||||
@@ -71,8 +71,8 @@
|
||||
<script lang="ts">
|
||||
import { Checkbox } from 'element-ui';
|
||||
import { mapStores } from 'pinia';
|
||||
import type { BaseTextKey } from '../../plugins/i18n';
|
||||
import { useLogStreamingStore } from '../../stores/logStreaming.store';
|
||||
import type { BaseTextKey } from '@/plugins/i18n';
|
||||
import { useLogStreamingStore } from '@/stores/logStreaming.store';
|
||||
|
||||
export default {
|
||||
name: 'event-selection',
|
||||
|
||||
@@ -3,7 +3,7 @@ import type {
|
||||
INodeParameters,
|
||||
MessageEventBusDestinationOptions,
|
||||
} from 'n8n-workflow';
|
||||
import type { INodeUi } from '../../Interface';
|
||||
import type { INodeUi } from '@/Interface';
|
||||
|
||||
export function destinationToFakeINodeUi(
|
||||
destination: MessageEventBusDestinationOptions,
|
||||
|
||||
Reference in New Issue
Block a user