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

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
+8 -3
View File
@@ -36,7 +36,10 @@ try {
console.log('\n已清空测试业务数据。')
console.log('保留内容:fulfillment profiles/bindings、admin users、配置文件。')
} catch (error) {
console.error('\n清理失败:', error instanceof Error ? error.message : String(error || '未知错误'))
console.error(
'\n清理失败:',
error instanceof Error ? error.message : String(error || '未知错误'),
)
process.exitCode = 1
} finally {
await closeDb()
@@ -64,7 +67,8 @@ function parseArgs(argv) {
}
function printHelp() {
console.log(`
console.log(
`
用法:
npm run cleanup:dev-data -- [--apply]
@@ -80,7 +84,8 @@ function printHelp() {
admin_users / admin_audit_logs
本地配置文件
数据库连接: ${String(runtimeConfig.database?.url || '').trim() || '(未配置 DATABASE_URL)'}
`.trim())
`.trim(),
)
}
function printSummary(counts) {