统一前后端代码格式化配置

This commit is contained in:
yml2213
2026-08-16 17:27:12 +08:00
parent 8705f6a6a1
commit 5c7c3e14e3
278 changed files with 6386 additions and 5500 deletions
+6 -4
View File
@@ -40,7 +40,11 @@ async function main() {
let appliedNames = new Set<string>()
try {
const result = await query<{ name: string | null; filename: string | null; run_on: string | null }>(
const result = await query<{
name: string | null
filename: string | null
run_on: string | null
}>(
`
SELECT name, filename, run_on
FROM schema_migrations
@@ -49,9 +53,7 @@ async function main() {
)
appliedNames = new Set(
result.rows
.map((row) => normalizeMigrationName(row.filename || row.name))
.filter(Boolean),
result.rows.map((row) => normalizeMigrationName(row.filename || row.name)).filter(Boolean),
)
} catch (error) {
const message = error instanceof Error ? error.message : String(error)