chore: 统一代码格式并配置开发工具

- 添加 ESLint 和 Prettier 配置以统一代码风格
- 配置项目级 TypeScript 设置
- 更新前后端依赖版本
- 修复代码格式问题(引号、分号、尾随逗号等)
- 优化文件结构和导入路径
This commit is contained in:
2026-03-10 18:24:19 +08:00
parent 58373a15a9
commit 35d835f68c
58 changed files with 14240 additions and 922 deletions

View File

@@ -9,17 +9,24 @@
"start": "NODE_ENV=production bun src/index.ts",
"start:dist": "bun run dist/server",
"build": "bun build --compile --minify-whitespace --minify-syntax --target bun --outfile dist/server src/index.ts",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"typecheck": "bun --bun tsc --noEmit"
},
"dependencies": {
"elysia": "^1.0.0",
"prisma": "^5.0.0",
"@prisma/client": "^5.0.0",
"better-auth": "^0.7.0",
"@elysiajs/cors": "^1.0.0",
"@elysiajs/eden": "^1.0.0"
"@elysiajs/eden": "^1.0.0",
"@libsql/client": "^0.17.0",
"@prisma/adapter-libsql": "^7.4.2",
"@prisma/client": "^7.4.2",
"better-auth": "^1.5.4",
"dotenv": "^17.3.1",
"elysia": "^1.0.0",
"prisma": "^7.4.2"
},
"devDependencies": {
"@types/bun": "latest"
"@prisma/config": "^7.4.2",
"@types/bun": "latest",
"eslint": "^10.0.3"
}
}
}