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:
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ICategoryItemProps } from '@/Interface';
|
||||
import type { ICategoryItemProps } from '@/Interface';
|
||||
|
||||
export interface Props {
|
||||
item: ICategoryItemProps;
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ViewItemProps } from '@/Interface';
|
||||
import type { ViewItemProps } from '@/Interface';
|
||||
|
||||
export interface Props {
|
||||
view: ViewItemProps;
|
||||
|
||||
Reference in New Issue
Block a user