Skip to content

Commit

Permalink
fix: fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tomi committed Nov 28, 2023
1 parent a6bd97f commit 02232c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { INodeTypeDescription } from 'n8n-workflow';
import type { INodeTypeDescription } from 'n8n-workflow';

export const twitterV2: INodeTypeDescription = {
displayName: 'X (Formerly Twitter)',
Expand Down
11 changes: 1 addition & 10 deletions packages/editor-ui/src/stores/nodeTypes.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@ import {
getResourceLocatorResults,
getResourceMapperFields,
} from '@/api/nodeTypes';
import {
DEFAULT_NODETYPE_VERSION,
HTTP_REQUEST_NODE_TYPE,
STORES,
CREDENTIAL_ONLY_HTTP_NODE_VERSION,
} from '@/constants';
import { HTTP_REQUEST_NODE_TYPE, STORES, CREDENTIAL_ONLY_HTTP_NODE_VERSION } from '@/constants';
import type { INodeTypesState, DynamicNodeParameters } from '@/Interface';
import { addHeaders, addNodeTranslation } from '@/plugins/i18n';
import { omit } from '@/utils';
Expand All @@ -37,10 +32,6 @@ import {
} from '@/utils/credentialOnlyNodes';
import { groupNodeTypesByNameAndType } from '@/utils/nodeTypes/nodeTypeTransforms';

function getNodeVersions(nodeType: INodeTypeDescription) {
return Array.isArray(nodeType.version) ? nodeType.version : [nodeType.version];
}

export type NodeTypesStore = ReturnType<typeof useNodeTypesStore>;

export const useNodeTypesStore = defineStore(STORES.NODE_TYPES, {
Expand Down

0 comments on commit 02232c3

Please sign in to comment.