diff --git a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowCanvas/FlowGraphBuilder.test.ts b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowCanvas/FlowGraphBuilder.test.ts index 1224a3c369..0d00bfb43f 100644 --- a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowCanvas/FlowGraphBuilder.test.ts +++ b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowCanvas/FlowGraphBuilder.test.ts @@ -1,10 +1,6 @@ import { describe, expect, it } from "vitest" import type { Edge as FlowEdge, Node as FlowNode } from "@xyflow/svelte" -import { - branchStep, - loopStep, - serverLogStep, -} from "@/test/automationFixtures" +import { branchStep, loopStep, serverLogStep } from "@/test/automationFixtures" import { renderLoopV2Container } from "./FlowGraphBuilder" import { FLOW_ITEM_ACTION_BAR_WIDTH, diff --git a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowChart.svelte b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowChart.svelte index 109c587910..8055386d52 100644 --- a/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowChart.svelte +++ b/packages/builder/src/components/automation/AutomationBuilder/FlowChart/FlowChart.svelte @@ -205,7 +205,10 @@ } } - $: if (!$automationStore.selectedNodeId && !$automationStore.selectedBranchNode) { + $: if ( + !$automationStore.selectedNodeId && + !$automationStore.selectedBranchNode + ) { lastVisibleSelectionCheck = undefined } diff --git a/packages/builder/src/components/automation/AutomationBuilder/StepPanel.svelte b/packages/builder/src/components/automation/AutomationBuilder/StepPanel.svelte index 47b268d03f..d2687c1124 100644 --- a/packages/builder/src/components/automation/AutomationBuilder/StepPanel.svelte +++ b/packages/builder/src/components/automation/AutomationBuilder/StepPanel.svelte @@ -181,7 +181,9 @@ } const deleteSelectedBlock = async ( - options?: Parameters[1] + options?: Parameters< + typeof automationStore.actions.deleteAutomationBlock + >[1] ) => { if (!blockRef) { return @@ -194,7 +196,10 @@ pathSteps ) - await automationStore.actions.deleteAutomationBlock(blockRef.pathTo, options) + await automationStore.actions.deleteAutomationBlock( + blockRef.pathTo, + options + ) await focusAfterDelete(focusTarget) } diff --git a/packages/builder/src/stores/builder/tests/automations.test.ts b/packages/builder/src/stores/builder/tests/automations.test.ts index 4e04aaf137..cd2073db72 100644 --- a/packages/builder/src/stores/builder/tests/automations.test.ts +++ b/packages/builder/src/stores/builder/tests/automations.test.ts @@ -247,8 +247,8 @@ describe("automation store", () => { selectedAutomationId: automation._id!, })) - const pathToDelete = get(selectedAutomation).blockRefs["before-branch"] - .pathTo + const pathToDelete = + get(selectedAutomation).blockRefs["before-branch"].pathTo await automationStore.actions.deleteAutomationBlock(pathToDelete) @@ -306,8 +306,8 @@ describe("automation store", () => { selectedAutomationId: automation._id!, })) - const pathToDelete = get(selectedAutomation).blockRefs["before-branch"] - .pathTo + const pathToDelete = + get(selectedAutomation).blockRefs["before-branch"].pathTo await automationStore.actions.deleteAutomationBlock(pathToDelete, { cascadeNextBranchInLoop: true, diff --git a/scripts/lintChanged.js b/scripts/lintChanged.js index d8db6d5f28..ad43c98f7d 100644 --- a/scripts/lintChanged.js +++ b/scripts/lintChanged.js @@ -69,9 +69,9 @@ const run = (bin, args) => { } if (mode === "fix") { - run("eslint", ["--fix", "--max-warnings=0", ...lintableFiles]) + run("eslint", ["--fix", "--max-warnings=0", "--no-warn-ignored", ...lintableFiles]) run("prettier", ["--write", ...lintableFiles]) } else { - run("eslint", ["--max-warnings=0", ...lintableFiles]) + run("eslint", ["--max-warnings=0", "--no-warn-ignored", ...lintableFiles]) run("prettier", ["--check", ...lintableFiles]) }