mirror of
https://github.com/johndoe6345789/snippet-pastebin.git
synced 2026-04-24 13:34:55 +00:00
Key changes: 1. Fix critical bug in src/app/page.tsx: removed conflicting `export const dynamic` that shadowed imported `dynamic` from next/dynamic, causing ReferenceError at runtime. Replaced with `export const revalidate = 0` then removed (client component). 2. Install missing typescript-eslint dependency and fix ESLint configuration to use flat config format properly. 3. Fix 32 ESLint errors across codebase: - Remove unused variables and imports (concat unused props in components) - Replace `any` types with proper TypeScript types (React.MutableRefObject) - Change empty interface in textarea.tsx to type alias - Fix react-hooks rule name from non-existent `set-state-in-effect` to `exhaustive-deps` 4. Code quality improvements: - Removed unused cn import from aspect-ratio.tsx - Removed unused useRef, useEffect from sheet.tsx imports - Simplified handler parameters in avatar.tsx - Cleaned up test files (removed unused container/user variables) Results after review: - Unit tests: 275 passing, 14 failing (improved from 270/19) - E2E tests: 204 passing, 59 failing, 17 skipped (now running after critical fix) - Linter: 0 errors (all 32 fixed) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
61 lines
1.6 KiB
JSON
61 lines
1.6 KiB
JSON
{
|
|
"name": "codesnippet",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "next lint",
|
|
"test": "jest",
|
|
"test:e2e": "playwright test",
|
|
"test:e2e:ui": "playwright test --ui",
|
|
"test:e2e:debug": "playwright test --debug",
|
|
"test:unit": "jest --watch"
|
|
},
|
|
"dependencies": {
|
|
"@babel/standalone": "^7.24.0",
|
|
"@monaco-editor/react": "^4.6.0",
|
|
"@phosphor-icons/react": "^2.1.7",
|
|
"@reduxjs/toolkit": "^2.5.0",
|
|
"class-variance-authority": "^0.7.0",
|
|
"framer-motion": "^11.15.0",
|
|
"idb": "^8.0.2",
|
|
"lucide-react": "^0.294.0",
|
|
"monaco-editor": "^0.52.2",
|
|
"next": "15.1.3",
|
|
"pyodide": "^0.23.0",
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0",
|
|
"react-error-boundary": "^4.0.11",
|
|
"react-redux": "^9.2.0",
|
|
"recharts": "^2.15.0",
|
|
"sonner": "^1.7.1",
|
|
"sucrase": "^3.35.0"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.49.1",
|
|
"@testing-library/jest-dom": "^6.1.5",
|
|
"@testing-library/react": "^14.1.2",
|
|
"@testing-library/user-event": "^14.5.1",
|
|
"@types/jest": "^29.5.11",
|
|
"@types/node": "^20",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"autoprefixer": "^10.4.17",
|
|
"eslint": "^8",
|
|
"eslint-config-next": "15.1.3",
|
|
"jest": "^29.7.0",
|
|
"jest-environment-jsdom": "^29.7.0",
|
|
"postcss": "^8.4.35",
|
|
"sass": "^1.83.4",
|
|
"ts-node": "^10.9.2",
|
|
"typescript": "^5",
|
|
"typescript-eslint": "^8.53.1"
|
|
},
|
|
"overrides": {
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0"
|
|
}
|
|
}
|