style: fix biome lint (import sorting, formatting)

This commit is contained in:
2026-05-31 04:44:09 +00:00
parent da1678ffef
commit 806edb2750
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
import { access, appendFile, mkdir, readdir, readFile, writeFile } from "node:fs/promises";
import type { Dirent } from "node:fs"; import type { Dirent } from "node:fs";
import { access, appendFile, mkdir, readdir, readFile, writeFile } from "node:fs/promises";
import { homedir } from "node:os"; import { homedir } from "node:os";
import { join } from "node:path"; import { join } from "node:path";
+5 -1
View File
@@ -68,7 +68,11 @@ function isGraph(value: unknown): boolean {
*/ */
export function workflowNameFromPath(filePath: string): string { export function workflowNameFromPath(filePath: string): string {
const base = basename(filePath); 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") { if (stem === "index") {
return basename(dirname(filePath)); return basename(dirname(filePath));
} }