- 在 .gitignore 中添加 public/audio/* 以忽略音频文件。 - 更新 bun.lock,添加 eslint-config-prettier 和 eslint-plugin-prettier 依赖,确保 ESLint 与 Prettier 的兼容性。 - 修改 eslint.config.ts,整合 Prettier 规则,优化代码风格一致性。 - 在 package.json 中添加 lint:fix 和 format 脚本,简化代码格式化和修复流程。 - 更新 tailwind.config.ts 和其他组件文件,统一代码风格,提升可读性。
67 lines
1.9 KiB
JSON
67 lines
1.9 KiB
JSON
{
|
|
"name": "shanghai-residences",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"packageManager": "bun@1.3.8",
|
|
"engines": {
|
|
"bun": ">=1.0.0"
|
|
},
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc && vite build",
|
|
"lint": "eslint .",
|
|
"lint:fix": "eslint . --fix",
|
|
"format": "prettier --write .",
|
|
"format:check": "prettier --check .",
|
|
"typecheck": "tsc --noEmit",
|
|
"preview": "vite preview",
|
|
"storybook": "storybook dev -p 6006",
|
|
"build-storybook": "storybook build"
|
|
},
|
|
"dependencies": {
|
|
"axios": "^1.12.2",
|
|
"clsx": "^2.1.1",
|
|
"framer-motion": "^12.23.26",
|
|
"lucide-react": "^0.545.0",
|
|
"mammoth": "^1.11.0",
|
|
"react": "^19.1.1",
|
|
"react-dom": "^19.1.1",
|
|
"react-router-dom": "^7.9.4",
|
|
"tailwind-merge": "^3.4.0",
|
|
"vconsole": "^3.15.1",
|
|
"zustand": "^5.0.8"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.36.0",
|
|
"@storybook/addon-essentials": "^8.4.7",
|
|
"@storybook/addon-interactions": "^8.4.7",
|
|
"@storybook/addon-links": "^8.4.7",
|
|
"@storybook/react": "^8.4.7",
|
|
"@storybook/react-vite": "^8.4.7",
|
|
"@storybook/test": "^8.4.7",
|
|
"@tailwindcss/postcss": "^4.1.14",
|
|
"@types/node": "^24.8.0",
|
|
"@types/react": "^19.1.16",
|
|
"@types/react-dom": "^19.1.9",
|
|
"@typescript-eslint/eslint-plugin": "^8.46.1",
|
|
"@typescript-eslint/parser": "^8.46.1",
|
|
"@vitejs/plugin-react": "^5.0.4",
|
|
"autoprefixer": "^10.4.21",
|
|
"baseline-browser-mapping": "^2.9.6",
|
|
"eslint": "^9.36.0",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"eslint-plugin-prettier": "^5.5.5",
|
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
"eslint-plugin-react-refresh": "^0.4.22",
|
|
"globals": "^16.4.0",
|
|
"postcss": "^8.5.6",
|
|
"prettier": "^3.8.1",
|
|
"storybook": "^8.4.7",
|
|
"tailwindcss": "^4.1.14",
|
|
"typescript": "^5.9.3",
|
|
"typescript-eslint": "^8.46.1",
|
|
"vite": "^7.1.7"
|
|
}
|
|
}
|