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

@@ -23,9 +23,9 @@
<script setup lang="ts">
import { reactive, computed, toRefs, getCurrentInstance } from 'vue';
import { INodeTypeDescription, INodeActionTypeDescription } from 'n8n-workflow';
import type { INodeTypeDescription, INodeActionTypeDescription } from 'n8n-workflow';
import { getNewNodePosition, NODE_SIZE } from '@/utils/nodeViewUtils';
import { IUpdateInformation } from '@/Interface';
import type { IUpdateInformation } from '@/Interface';
import NodeIcon from '@/components/NodeIcon.vue';
import { useNodeCreatorStore } from '@/stores/nodeCreator';

View File

@@ -96,10 +96,10 @@ import {
nextTick,
} from 'vue';
import { camelCase } from 'lodash-es';
import { INodeTypeDescription } from 'n8n-workflow';
import type { INodeTypeDescription } from 'n8n-workflow';
import ItemIterator from './ItemIterator.vue';
import SearchBar from './SearchBar.vue';
import {
import type {
INodeCreateElement,
ISubcategoryItemProps,
ICategoryItemProps,
@@ -108,7 +108,7 @@ import {
CategoryCreateElement,
INodeItemProps,
} from '@/Interface';
import { BaseTextKey } from '@/plugins/i18n';
import type { BaseTextKey } from '@/plugins/i18n';
import { sublimeSearch, matchesNodeType, matchesSelectType } from '@/utils';
import { useWorkflowsStore } from '@/stores/workflows';
import { useRootStore } from '@/stores/n8nRootStore';

View File

@@ -7,7 +7,7 @@
</template>
<script lang="ts" setup>
import { ICategoryItemProps } from '@/Interface';
import type { ICategoryItemProps } from '@/Interface';
export interface Props {
item: ICategoryItemProps;

View File

@@ -57,7 +57,7 @@
</template>
<script setup lang="ts">
import { INodeCreateElement, NodeCreateElement } from '@/Interface';
import type { INodeCreateElement, NodeCreateElement } from '@/Interface';
import NodeItem from './NodeItem.vue';
import SubcategoryItem from './SubcategoryItem.vue';
import CategoryItem from './CategoryItem.vue';

View File

@@ -79,12 +79,9 @@
<script setup lang="ts">
import { reactive, toRefs, getCurrentInstance, computed, onUnmounted, ref } from 'vue';
import {
INodeTypeDescription,
INodeActionTypeDescription,
INodeTypeNameVersion,
} from 'n8n-workflow';
import {
import type { INodeTypeDescription, INodeActionTypeDescription } from 'n8n-workflow';
import { INodeTypeNameVersion } from 'n8n-workflow';
import type {
INodeCreateElement,
NodeCreateElement,
IActionItemProps,
@@ -106,7 +103,7 @@ import CategorizedItems from './CategorizedItems.vue';
import { useNodeCreatorStore } from '@/stores/nodeCreator';
import { getCategoriesWithNodes, getCategorizedList } from '@/utils';
import { useNodeTypesStore } from '@/stores/nodeTypes';
import { BaseTextKey } from '@/plugins/i18n';
import type { BaseTextKey } from '@/plugins/i18n';
import NoResults from './NoResults.vue';
import { useRootStore } from '@/stores/n8nRootStore';
import useMainPanelView from './useMainPanelView';

View File

@@ -40,7 +40,7 @@
<script setup lang="ts">
import { reactive, computed, toRefs, getCurrentInstance } from 'vue';
import { INodeTypeDescription } from 'n8n-workflow';
import type { INodeTypeDescription } from 'n8n-workflow';
import { getNewNodePosition, NODE_SIZE } from '@/utils/nodeViewUtils';
import { isCommunityPackageName } from '@/utils';

View File

@@ -25,7 +25,7 @@
<script setup lang="ts">
import { onMounted, reactive, toRefs, onBeforeUnmount } from 'vue';
import { EventBus } from '@/event-bus';
import type { EventBus } from '@/event-bus';
import { useExternalHooks } from '@/composables';
export interface Props {

View File

@@ -13,7 +13,7 @@
</template>
<script setup lang="ts">
import { ISubcategoryItemProps } from '@/Interface';
import type { ISubcategoryItemProps } from '@/Interface';
import { camelCase } from 'lodash-es';
import { computed } from 'vue';
export interface Props {

View File

@@ -21,7 +21,7 @@
</template>
<script setup lang="ts">
import { ViewItemProps } from '@/Interface';
import type { ViewItemProps } from '@/Interface';
export interface Props {
view: ViewItemProps;