chore: 统一代码格式并配置开发工具
- 添加 ESLint 和 Prettier 配置以统一代码风格 - 配置项目级 TypeScript 设置 - 更新前后端依赖版本 - 修复代码格式问题(引号、分号、尾随逗号等) - 优化文件结构和导入路径
This commit is contained in:
24
package.json
24
package.json
@@ -15,10 +15,28 @@
|
||||
"build:web": "bun run --filter=web build",
|
||||
"build:backend": "bun run --filter=backend build",
|
||||
"build:seq": "bun run build:backend && bun run build:web",
|
||||
"lint": "concurrently -n 'backend,web' 'cd backend && bun run typecheck' 'cd web && bun run lint'"
|
||||
"lint": "concurrently -n 'backend,web' 'cd backend && bun run lint' 'cd web && bun run lint'",
|
||||
"lint:fix": "concurrently -n 'backend,web' 'cd backend && bun run lint:fix' 'cd web && bun run lint:fix'",
|
||||
"format": "prettier --write .",
|
||||
"typecheck": "concurrently -n 'backend,web' 'cd backend && bun run typecheck' 'cd web && bun run typecheck'"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^10.0.1",
|
||||
"@types/bun": "^1.3.10",
|
||||
"@types/node": "^25.4.0",
|
||||
"@types/react": "^19.2.14",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"bun-plugin-tailwind": "^0.1.2",
|
||||
"concurrently": "^9.2.1",
|
||||
"typescript": "~5.9.3"
|
||||
"eslint": "^10.0.3",
|
||||
"eslint-config-prettier": "^10.1.8",
|
||||
"eslint-plugin-react": "^7.37.5",
|
||||
"eslint-plugin-react-hooks": "^7.0.1",
|
||||
"eslint-plugin-react-refresh": "^0.5.2",
|
||||
"globals": "^17.4.0",
|
||||
"prettier": "^3.8.1",
|
||||
"prettier-plugin-tailwindcss": "^0.7.2",
|
||||
"typescript": "~5.9.3",
|
||||
"typescript-eslint": "^8.57.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user