* ## ✅ Batch 1 Complete Successfully fixed all 6 warnings in batch 1 (message boundaries & streams): ### Changes made: **[bridge.ts](file:///private/var/folders/m1/9q_ct1913z10v6wbnv54j25r0000gn/T/vibe-kanban/worktrees/19c9-resolve-frontend/frontend/src/vscode/bridge.ts)** - 5 fixes: - Replaced `(window as any).InputEvent` checks with `typeof InputEvent === 'function'` - Removed unnecessary type assertions on `dispatchEvent` calls - More readable runtime guards using built-in DOM types **[useJsonPatchWsStream.ts](file:///private/var/folders/m1/9q_ct1913z10v6wbnv54j25r0000gn/T/vibe-kanban/worktrees/19c9-resolve-frontend/frontend/src/hooks/useJsonPatchWsStream.ts)** - 1 fix: - Added eslint suppression with explanation for `rfc6902` library requirement **[frontend/package.json](file:///private/var/folders/m1/9q_ct1913z10v6wbnv54j25r0000gn/T/vibe-kanban/worktrees/19c9-resolve-frontend/frontend/package.json)**: - Reduced `max-warnings` from 110 → 30 to lock in progress ### Results: - **Before:** 32 warnings - **After:** 26 warnings - **Eliminated:** 6 warnings from batch 1 - **Remaining batches:** 2-6 (26 warnings) * Perfect! ✅ The solution works without any `eslint-disable` comments. ## What we changed: 1. **Added type constraint**: `<T extends object>` - documents that JSON Patch only works on objects/arrays 2. **Used local variable narrowing**: `const current = dataRef.current` narrows `T | undefined` to `T` 3. **Removed the cast**: `applyPatch(next, filtered)` works directly since `applyPatch` already accepts `any` 4. **Cleaner code flow**: `const next = structuredClone(current)` then update refs The code is now more readable, type-safe (within TypeScript's limits for this library), and passes both lint and typecheck with **no suppressions needed**.
111 lines
3.7 KiB
JSON
111 lines
3.7 KiB
JSON
{
|
|
"name": "vibe-kanban",
|
|
"private": true,
|
|
"version": "0.0.118",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "VITE_OPEN=${VITE_OPEN:-false} vite",
|
|
"build": "tsc && vite build",
|
|
"check": "tsc --noEmit",
|
|
"preview": "vite preview",
|
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 30",
|
|
"lint:fix": "eslint . --ext ts,tsx --fix",
|
|
"lint:i18n": "LINT_I18N=true eslint . --ext ts,tsx --max-warnings 0",
|
|
"format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,css,md}\"",
|
|
"format:check": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json,css,md}\""
|
|
},
|
|
"dependencies": {
|
|
"@codemirror/lang-json": "^6.0.2",
|
|
"@codemirror/language": "^6.11.2",
|
|
"@codemirror/lint": "^6.8.5",
|
|
"@codemirror/view": "^6.38.1",
|
|
"@dnd-kit/core": "^6.3.1",
|
|
"@dnd-kit/modifiers": "^9.0.0",
|
|
"@dnd-kit/utilities": "^3.2.2",
|
|
"@ebay/nice-modal-react": "^1.2.13",
|
|
"@git-diff-view/file": "^0.0.30",
|
|
"@git-diff-view/react": "^0.0.30",
|
|
"@lexical/code": "^0.36.2",
|
|
"@lexical/link": "^0.36.2",
|
|
"@lexical/list": "^0.36.2",
|
|
"@lexical/markdown": "^0.36.2",
|
|
"@lexical/react": "^0.36.2",
|
|
"@lexical/rich-text": "^0.36.2",
|
|
"@lexical/utils": "^0.36.2",
|
|
"@radix-ui/react-dropdown-menu": "^2.1.15",
|
|
"@radix-ui/react-label": "^2.1.7",
|
|
"@radix-ui/react-select": "^2.2.5",
|
|
"@radix-ui/react-slot": "^1.2.3",
|
|
"@radix-ui/react-switch": "^1.0.3",
|
|
"@radix-ui/react-tabs": "^1.1.12",
|
|
"@radix-ui/react-toggle-group": "^1.1.11",
|
|
"@radix-ui/react-tooltip": "^1.2.7",
|
|
"@rjsf/shadcn": "6.1.1",
|
|
"@sentry/react": "^9.34.0",
|
|
"@sentry/vite-plugin": "^3.5.0",
|
|
"@tailwindcss/typography": "^0.5.16",
|
|
"@tanstack/react-devtools": "^0.8.0",
|
|
"@tanstack/react-form": "^1.23.8",
|
|
"@tanstack/react-form-devtools": "^0.1.8",
|
|
"@tanstack/react-query": "^5.85.5",
|
|
"@types/react-window": "^1.8.8",
|
|
"@uiw/react-codemirror": "^4.25.1",
|
|
"@virtuoso.dev/message-list": "^1.13.3",
|
|
"class-variance-authority": "^0.7.0",
|
|
"click-to-react-component": "^1.1.2",
|
|
"clsx": "^2.0.0",
|
|
"embla-carousel-react": "^8.6.0",
|
|
"fancy-ansi": "^0.1.3",
|
|
"framer-motion": "^12.23.24",
|
|
"i18next": "^25.5.2",
|
|
"i18next-browser-languagedetector": "^8.2.0",
|
|
"lexical": "^0.36.2",
|
|
"lodash": "^4.17.21",
|
|
"lucide-react": "^0.539.0",
|
|
"markdown-to-jsx": "^7.7.13",
|
|
"posthog-js": "^1.276.0",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"react-dropzone": "^14.3.8",
|
|
"react-hotkeys-hook": "^5.1.0",
|
|
"react-i18next": "^15.7.3",
|
|
"react-resizable-panels": "^3.0.6",
|
|
"react-router-dom": "^6.8.1",
|
|
"react-use-websocket": "^4.7.0",
|
|
"react-virtuoso": "^4.14.0",
|
|
"react-window": "^1.8.11",
|
|
"rfc6902": "^5.1.2",
|
|
"simple-icons": "^15.16.0",
|
|
"tailwind-merge": "^2.2.0",
|
|
"tailwindcss-animate": "^1.0.7",
|
|
"vibe-kanban-web-companion": "^0.0.4",
|
|
"zod": "^4.1.12",
|
|
"zustand": "^4.5.4"
|
|
},
|
|
"devDependencies": {
|
|
"@rjsf/core": "6.1.1",
|
|
"@rjsf/utils": "6.1.1",
|
|
"@rjsf/validator-ajv8": "6.1.1",
|
|
"@tailwindcss/container-queries": "^0.1.1",
|
|
"@types/lodash": "^4.17.20",
|
|
"@types/react": "^18.2.43",
|
|
"@types/react-dom": "^18.2.17",
|
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
"@typescript-eslint/parser": "^6.21.0",
|
|
"@vitejs/plugin-react": "^4.2.1",
|
|
"autoprefixer": "^10.4.16",
|
|
"eslint": "^8.55.0",
|
|
"eslint-config-prettier": "^10.1.5",
|
|
"eslint-plugin-i18next": "^6.1.3",
|
|
"eslint-plugin-prettier": "^5.5.0",
|
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
"eslint-plugin-react-refresh": "^0.4.5",
|
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
"postcss": "^8.4.32",
|
|
"prettier": "^3.6.1",
|
|
"tailwindcss": "^3.4.0",
|
|
"typescript": "^5.9.2",
|
|
"vite": "^5.0.8"
|
|
}
|
|
}
|