refactor: Integrate consistent-type-imports in FE packages (no-changelog) (#6060)

* 👕 Move `consistent-type-imports` to top level

* 👕 Apply lintfixes

* 👕 Apply more lintfixes

* 👕 More lintfixes

* 👕 More lintfixes
This commit is contained in:
Iván Ovejero
2023-04-24 12:18:24 +02:00
committed by GitHub
parent eaf7090919
commit 57aab63c10
269 changed files with 624 additions and 569 deletions

View File

@@ -51,15 +51,13 @@ import mixins from 'vue-typed-mixins';
import { EnterpriseEditionFeature } from '@/constants';
import { showMessage } from '@/mixins/showMessage';
import { useLogStreamingStore } from '../../stores/logStreamingStore';
import Vue, { PropType } from 'vue';
import type { PropType } from 'vue';
import Vue from 'vue';
import { mapStores } from 'pinia';
import {
deepCopy,
defaultMessageEventBusDestinationOptions,
MessageEventBusDestinationOptions,
} from 'n8n-workflow';
import { BaseTextKey } from '../../plugins/i18n';
import { EventBus } from '@/event-bus';
import type { MessageEventBusDestinationOptions } from 'n8n-workflow';
import { deepCopy, defaultMessageEventBusDestinationOptions } from 'n8n-workflow';
import type { BaseTextKey } from '../../plugins/i18n';
import type { EventBus } from '@/event-bus';
export const DESTINATION_LIST_ITEM_ACTIONS = {
OPEN: 'open',

View File

@@ -180,20 +180,23 @@ import { useNDVStore } from '../../stores/ndv';
import { useWorkflowsStore } from '../../stores/workflows';
import ParameterInputList from '@/components/ParameterInputList.vue';
import NodeCredentials from '@/components/NodeCredentials.vue';
import { IMenuItem, INodeUi, ITab, IUpdateInformation } from '../../Interface';
import type { IMenuItem, INodeUi, ITab, IUpdateInformation } from '../../Interface';
import type {
IDataObject,
INodeCredentials,
NodeParameterValue,
MessageEventBusDestinationOptions,
} from 'n8n-workflow';
import {
deepCopy,
defaultMessageEventBusDestinationOptions,
defaultMessageEventBusDestinationWebhookOptions,
IDataObject,
INodeCredentials,
NodeParameterValue,
MessageEventBusDestinationTypeNames,
MessageEventBusDestinationOptions,
defaultMessageEventBusDestinationSyslogOptions,
defaultMessageEventBusDestinationSentryOptions,
} from 'n8n-workflow';
import Vue, { PropType } from 'vue';
import type { PropType } from 'vue';
import Vue from 'vue';
import { LOG_STREAM_MODAL_KEY } from '../../constants';
import Modal from '@/components/Modal.vue';
import { showMessage } from '@/mixins/showMessage';
@@ -205,12 +208,13 @@ import {
sentryModalDescription,
syslogModalDescription,
} from './descriptions.ee';
import { 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';
import { Checkbox } from 'element-ui';
import { createEventBus, EventBus } from '@/event-bus';
import type { EventBus } from '@/event-bus';
import { createEventBus } from '@/event-bus';
export default mixins(showMessage).extend({
name: 'event-destination-settings-modal',

View File

@@ -71,7 +71,7 @@
<script lang="ts">
import { Checkbox } from 'element-ui';
import { mapStores } from 'pinia';
import { BaseTextKey } from '../../plugins/i18n';
import type { BaseTextKey } from '../../plugins/i18n';
import { useLogStreamingStore } from '../../stores/logStreamingStore';
export default {

View File

@@ -1,5 +1,9 @@
import { INodeCredentials, INodeParameters, MessageEventBusDestinationOptions } from 'n8n-workflow';
import { INodeUi } from '../../Interface';
import type {
INodeCredentials,
INodeParameters,
MessageEventBusDestinationOptions,
} from 'n8n-workflow';
import type { INodeUi } from '../../Interface';
export function destinationToFakeINodeUi(
destination: MessageEventBusDestinationOptions,

View File

@@ -1,4 +1,4 @@
import { INodeProperties } from 'n8n-workflow';
import type { INodeProperties } from 'n8n-workflow';
export const webhookModalDescription = [
{