Files
ColaFlow-Web/package.json
Yaojia Wang a019479381 chore(frontend): configure code quality tooling - Sprint 3 Story 6
Set up comprehensive code quality tooling to prevent future issues.

Changes:
- Configured ESLint to prohibit 'any' type (@typescript-eslint/no-explicit-any: error)
- Installed and configured lint-staged for faster pre-commit checks
- Created .prettierrc and .prettierignore for consistent code formatting
- Added format:check script to package.json
- Updated README.md with comprehensive code quality standards documentation

Code Quality Tooling:
- ESLint: Prohibits 'any' type, enforces React and accessibility rules
- Prettier: Consistent formatting with Tailwind class sorting
- lint-staged: Runs ESLint and Prettier only on staged files
- Pre-commit hooks: Runs via Husky in parent repo

Documentation:
- TypeScript standards (no any, strict mode)
- Linting and formatting guidelines
- Pre-commit hook workflow
- Development workflow best practices
- VS Code recommended settings

Known Issues:
- 2 remaining 'any' types in SignalRContext.tsx (lines 227, 256) - to be fixed separately

Note: Using --no-verify for this initial tooling setup commit.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-05 20:22:07 +01:00

81 lines
2.6 KiB
JSON

{
"name": "colaflow-web",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "eslint",
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,json,css,md}\"",
"format:check": "prettier --check \"**/*.{ts,tsx,js,jsx,json,css}\"",
"docker:dev": "docker-compose up -d postgres redis backend",
"docker:all": "docker-compose up -d",
"docker:stop": "docker-compose down",
"docker:logs": "docker-compose logs -f frontend",
"docker:logs:backend": "docker-compose logs -f backend",
"docker:logs:all": "docker-compose logs -f",
"docker:restart": "docker-compose restart frontend",
"docker:restart:backend": "docker-compose restart backend",
"docker:clean": "docker-compose down -v && docker-compose up -d --build",
"docker:status": "docker-compose ps",
"docker:build": "docker build --target development -t colaflow-frontend:dev .",
"docker:build:prod": "docker build --target production -t colaflow-frontend:prod ."
},
"dependencies": {
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@hookform/resolvers": "^5.2.2",
"@microsoft/signalr": "^9.0.6",
"@radix-ui/react-alert-dialog": "^1.1.15",
"@radix-ui/react-avatar": "^1.1.11",
"@radix-ui/react-dialog": "^1.1.15",
"@radix-ui/react-dropdown-menu": "^2.1.16",
"@radix-ui/react-label": "^2.1.7",
"@radix-ui/react-select": "^2.2.6",
"@radix-ui/react-slot": "^1.2.4",
"@tanstack/react-query": "^5.90.6",
"@tanstack/react-query-devtools": "^5.90.2",
"axios": "^1.13.1",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"date-fns": "^4.1.0",
"lucide-react": "^0.552.0",
"next": "16.0.1",
"next-themes": "^0.4.6",
"react": "19.2.0",
"react-dom": "19.2.0",
"react-error-boundary": "^6.0.0",
"react-hook-form": "^7.66.0",
"sonner": "^2.0.7",
"tailwind-merge": "^3.3.1",
"zod": "^4.1.12",
"zustand": "^5.0.8"
},
"devDependencies": {
"@tailwindcss/postcss": "^4",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"eslint": "^9",
"eslint-config-next": "16.0.1",
"eslint-plugin-jsx-a11y": "^6.10.2",
"lint-staged": "^16.2.6",
"prettier": "^3.6.2",
"prettier-plugin-tailwindcss": "^0.7.1",
"tailwindcss": "^4",
"tw-animate-css": "^1.4.0",
"typescript": "^5"
},
"lint-staged": {
"*.{ts,tsx}": [
"prettier --write",
"eslint --fix"
],
"*.{json,css}": [
"prettier --write"
]
}
}