From 060acd2db86f919500ffd11ef2d116db6cecc8e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Wed, 2 Jul 2025 10:31:11 +0200 Subject: [PATCH] chore: Lintfix frontend packages (#16896) --- .../@n8n/chat/src/__stories__/App.stories.ts | 1 - .../frontend/@n8n/chat/src/constants/symbols.ts | 2 -- packages/frontend/@n8n/chat/src/plugins/chat.ts | 1 - packages/frontend/@n8n/i18n/src/index.ts | 2 +- .../@n8n/stores/src/useAgentRequestStore.ts | 2 +- .../editor-ui/src/components/ApiKeyScopes.vue | 2 +- .../src/components/ButtonParameter/utils.test.ts | 1 - .../CommunityPackageManageConfirmModal.vue | 2 +- .../components/CommunityPlusEnrollmentModal.vue | 2 +- .../components/CredentialEdit/CredentialConfig.vue | 3 +-- .../components/CredentialEdit/CredentialEdit.vue | 4 +--- .../CredentialEdit/CredentialSharing.ee.vue | 3 +-- .../editor-ui/src/components/CredentialIcon.vue | 2 +- .../editor-ui/src/components/CredentialsSelect.vue | 3 +-- .../src/components/DuplicateWorkflowDialog.vue | 2 +- .../Evaluations.ee/ListRuns/RunsSection.vue | 2 +- .../components/ExternalSecretsProviderCard.ee.vue | 2 +- .../src/components/Folders/FolderCard.vue | 2 +- .../Node/NodeCreator/Modes/ActionsMode.vue | 2 +- .../Node/NodeCreator/Modes/NodesMode.vue | 4 ++-- .../NodeCreator/Panel/CommunityNodeDocsLink.vue | 2 +- .../Node/NodeCreator/Panel/CommunityNodeInfo.vue | 2 +- .../composables/useActionsGeneration.ts | 2 +- .../editor-ui/src/components/NodeDetailsView.vue | 2 +- .../editor-ui/src/components/NodeSettingsTabs.vue | 2 +- .../editor-ui/src/components/OutputPanel.vue | 2 +- .../editor-ui/src/components/ParameterInput.vue | 4 ++-- .../src/components/ParameterInputList.vue | 2 +- .../components/ResourceLocator/ResourceLocator.vue | 9 ++------- .../components/ResourceMapper/MappingFields.vue | 3 +-- .../frontend/editor-ui/src/components/RunData.vue | 4 ++-- .../src/components/SourceControlPushModal.ee.vue | 6 +++--- .../components/TagsManager/TagsView/TagsTable.vue | 2 +- .../editor-ui/src/components/VirtualSchema.vue | 2 +- .../background/CanvasBackgroundStripedPattern.vue | 1 - .../elements/handles/CanvasHandleRenderer.vue | 1 - .../WorkflowExecutionAnnotationPanel.ee.vue | 2 +- .../WorkflowExecutionAnnotationTags.ee.vue | 4 ++-- .../workflow/WorkflowExecutionsPreview.vue | 4 ++-- .../src/composables/useCanvasOperations.ts | 4 ++-- .../src/composables/useNodeDirtiness.test.ts | 1 - .../src/composables/useNodeHelpers.test.ts | 14 +++++++------- .../editor-ui/src/composables/useNodeHelpers.ts | 2 +- .../src/composables/useWorkflowHelpers.ts | 6 +----- .../features/logs/components/LogDetailsPanel.vue | 3 +-- .../editor-ui/src/features/logs/logs.utils.ts | 1 - .../codemirror/completions/datatype.completions.ts | 2 +- .../editor-ui/src/stores/executions.store.ts | 7 +++++-- .../editor-ui/src/stores/schemaPreview.store.ts | 2 +- .../frontend/editor-ui/src/stores/sso.store.ts | 3 +-- .../editor-ui/src/stores/templates.store.ts | 2 +- .../editor-ui/src/stores/workflows.store.ts | 14 +++++++------- packages/frontend/editor-ui/src/types/canvas.ts | 1 - .../frontend/editor-ui/src/utils/canvasUtils.ts | 2 +- .../frontend/editor-ui/src/utils/executionUtils.ts | 6 +++--- .../frontend/editor-ui/src/utils/nodeTypesUtils.ts | 11 ++++------- .../editor-ui/src/views/CredentialsView.vue | 3 +-- .../src/views/Evaluations.ee/EvaluationsView.vue | 2 +- .../frontend/editor-ui/src/views/VariablesView.vue | 9 +++++++-- .../frontend/editor-ui/src/views/WorkflowsView.vue | 12 +++++------- 60 files changed, 91 insertions(+), 116 deletions(-) diff --git a/packages/frontend/@n8n/chat/src/__stories__/App.stories.ts b/packages/frontend/@n8n/chat/src/__stories__/App.stories.ts index 3d08e3c6258..6ec8b189112 100644 --- a/packages/frontend/@n8n/chat/src/__stories__/App.stories.ts +++ b/packages/frontend/@n8n/chat/src/__stories__/App.stories.ts @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/naming-convention */ import type { StoryObj } from '@storybook/vue3'; import { onMounted } from 'vue'; diff --git a/packages/frontend/@n8n/chat/src/constants/symbols.ts b/packages/frontend/@n8n/chat/src/constants/symbols.ts index 75d0f531a5e..d33c0623a85 100644 --- a/packages/frontend/@n8n/chat/src/constants/symbols.ts +++ b/packages/frontend/@n8n/chat/src/constants/symbols.ts @@ -2,8 +2,6 @@ import type { InjectionKey } from 'vue'; import type { Chat, ChatOptions } from '@n8n/chat/types'; -// eslint-disable-next-line @typescript-eslint/naming-convention export const ChatSymbol = 'Chat' as unknown as InjectionKey; -// eslint-disable-next-line @typescript-eslint/naming-convention export const ChatOptionsSymbol = 'ChatOptions' as unknown as InjectionKey; diff --git a/packages/frontend/@n8n/chat/src/plugins/chat.ts b/packages/frontend/@n8n/chat/src/plugins/chat.ts index 1bdadb1f7e8..314ef3673d6 100644 --- a/packages/frontend/@n8n/chat/src/plugins/chat.ts +++ b/packages/frontend/@n8n/chat/src/plugins/chat.ts @@ -7,7 +7,6 @@ import { ChatOptionsSymbol, ChatSymbol, localStorageSessionIdKey } from '@n8n/ch import { chatEventBus } from '@n8n/chat/event-buses'; import type { ChatMessage, ChatOptions } from '@n8n/chat/types'; -// eslint-disable-next-line @typescript-eslint/naming-convention export const ChatPlugin: Plugin = { install(app, options) { app.provide(ChatOptionsSymbol, options); diff --git a/packages/frontend/@n8n/i18n/src/index.ts b/packages/frontend/@n8n/i18n/src/index.ts index 5c25b1d1d1b..1d51bb8416a 100644 --- a/packages/frontend/@n8n/i18n/src/index.ts +++ b/packages/frontend/@n8n/i18n/src/index.ts @@ -378,7 +378,7 @@ const loadedLanguages = ['en']; async function setLanguage(language: string) { i18nInstance.global.locale = language as 'en'; - document!.querySelector('html')!.setAttribute('lang', language); + document.querySelector('html')!.setAttribute('lang', language); return language; } diff --git a/packages/frontend/@n8n/stores/src/useAgentRequestStore.ts b/packages/frontend/@n8n/stores/src/useAgentRequestStore.ts index 8dad8e15b4d..fe9b28e6415 100644 --- a/packages/frontend/@n8n/stores/src/useAgentRequestStore.ts +++ b/packages/frontend/@n8n/stores/src/useAgentRequestStore.ts @@ -44,7 +44,7 @@ export const useAgentRequestStore = defineStore('agentRequest', () => { if (typeof query === 'string') { return undefined; } - return query?.[paramName] as NodeParameterValueType; + return query?.[paramName]; }; const setAgentRequestForNode = ( diff --git a/packages/frontend/editor-ui/src/components/ApiKeyScopes.vue b/packages/frontend/editor-ui/src/components/ApiKeyScopes.vue index 2bb50a32205..ff7d8ac9270 100644 --- a/packages/frontend/editor-ui/src/components/ApiKeyScopes.vue +++ b/packages/frontend/editor-ui/src/components/ApiKeyScopes.vue @@ -1,6 +1,6 @@