Add --no-warn-ignored to lintChanged.js so Prettier can run after ESLint

This commit is contained in:
Mel O'Hagan
2026-05-14 16:03:23 +01:00
parent afdf857590
commit 51fb869619
5 changed files with 18 additions and 14 deletions
@@ -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,
@@ -205,7 +205,10 @@
}
}
$: if (!$automationStore.selectedNodeId && !$automationStore.selectedBranchNode) {
$: if (
!$automationStore.selectedNodeId &&
!$automationStore.selectedBranchNode
) {
lastVisibleSelectionCheck = undefined
}
@@ -181,7 +181,9 @@
}
const deleteSelectedBlock = async (
options?: Parameters<typeof automationStore.actions.deleteAutomationBlock>[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)
}
@@ -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,
+2 -2
View File
@@ -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])
}