From 806edb2750af1c729635220b428a63754fa4dcf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=A2=A8?= Date: Sun, 31 May 2026 04:44:09 +0000 Subject: [PATCH] style: fix biome lint (import sorting, formatting) --- packages/cli-workflow/src/store.ts | 2 +- packages/cli-workflow/src/validate.ts | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/cli-workflow/src/store.ts b/packages/cli-workflow/src/store.ts index 7b1f847..e8578ee 100644 --- a/packages/cli-workflow/src/store.ts +++ b/packages/cli-workflow/src/store.ts @@ -1,5 +1,5 @@ -import { access, appendFile, mkdir, readdir, readFile, writeFile } from "node:fs/promises"; import type { Dirent } from "node:fs"; +import { access, appendFile, mkdir, readdir, readFile, writeFile } from "node:fs/promises"; import { homedir } from "node:os"; import { join } from "node:path"; diff --git a/packages/cli-workflow/src/validate.ts b/packages/cli-workflow/src/validate.ts index 76683c6..83a68aa 100644 --- a/packages/cli-workflow/src/validate.ts +++ b/packages/cli-workflow/src/validate.ts @@ -68,7 +68,11 @@ function isGraph(value: unknown): boolean { */ export function workflowNameFromPath(filePath: string): string { const base = basename(filePath); - const stem = base.endsWith(".yaml") ? base.slice(0, -5) : base.endsWith(".yml") ? base.slice(0, -4) : base; + const stem = base.endsWith(".yaml") + ? base.slice(0, -5) + : base.endsWith(".yml") + ? base.slice(0, -4) + : base; if (stem === "index") { return basename(dirname(filePath)); }