mirror of
https://github.com/Budibase/budibase.git
synced 2026-08-31 01:34:57 +08:00
Add --no-warn-ignored to lintChanged.js so Prettier can run after ESLint
This commit is contained in:
+1
-5
@@ -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,
|
||||
|
||||
+4
-1
@@ -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,
|
||||
|
||||
@@ -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])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user