eslint now also enforces: - the React Compiler diagnostics that `recommended` leaves out (todo, memo-dependencies and ten zero-hit tripwires); - a description on every suppression, and no blanket disables; - no focused or skipped tests (vitest and playwright); - the typed pair no-floating-promises and no-deprecated. Lint also covers e2e/ and the TypeScript build configs, which `eslint .` had been skipping in silence. Every hit is fixed or suppressed inline with a named reason: - The 31 try statements the compiler cannot lower yet carry a suppression until S3 rewrites them. Five other compiler skips were plain fixes: a module counter bumped inside a hook, a ref read in a default parameter, and a local named like the <section> it renders. - The real defects behind floating promises are fixed. ChatDock threw at nobody when the device key store could not be opened. VideoEditor's play() rejection went unhandled. loadYouTubeApi never rejected, so a blocked IFrame API left the player on an empty stage forever; it now fails on a script error or after 15 s, shows its own error with the way out, and lets the next open try again. - MutableRefObject, FormEvent and lucide's deprecated brand icon are replaced. The YouTube glyph now lives in lib/brandIcons. - The lint-probe harness lets its virtual file names into TypeScript's default project, so the contract tests still run the real config.
71 lines
2.1 KiB
JSON
71 lines
2.1 KiB
JSON
{
|
|
"name": "siftlode-frontend",
|
|
"private": true,
|
|
"license": "AGPL-3.0-only",
|
|
"type": "module",
|
|
"engines": {
|
|
"node": "24.x"
|
|
},
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"typecheck": "npm run typecheck:app && npm run typecheck:node && npm run typecheck:e2e",
|
|
"typecheck:app": "tsc --noEmit -p tsconfig.json",
|
|
"typecheck:node": "tsc -p tsconfig.node.json",
|
|
"typecheck:e2e": "tsc --noEmit -p e2e/tsconfig.json",
|
|
"build": "npm run typecheck:app && npm run typecheck:node && vite build",
|
|
"preview": "vite preview",
|
|
"knip": "knip",
|
|
"lint": "eslint . --max-warnings 0",
|
|
"format": "prettier --write .",
|
|
"format:check": "prettier --check .",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"e2e": "playwright test"
|
|
},
|
|
"dependencies": {
|
|
"@dnd-kit/core": "^6.3.1",
|
|
"@dnd-kit/sortable": "^10.0.0",
|
|
"@dnd-kit/utilities": "^3.2.2",
|
|
"@floating-ui/react": "^0.27.20",
|
|
"@tanstack/react-query": "^5.51.0",
|
|
"@tanstack/react-virtual": "^3.14.3",
|
|
"clsx": "^2.1.1",
|
|
"flag-icons": "^7.5.0",
|
|
"hls.js": "^1.6.16",
|
|
"i18next": "^23.11.5",
|
|
"lucide-react": "^0.408.0",
|
|
"react": "19.3.0",
|
|
"react-dom": "19.3.0",
|
|
"react-i18next": "^15.7.4"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "7.29.7",
|
|
"@eslint-community/eslint-plugin-eslint-comments": "4.8.1",
|
|
"@eslint/js": "9.39.1",
|
|
"@playwright/test": "^1.61.1",
|
|
"@tailwindcss/postcss": "^4.3.3",
|
|
"@testing-library/react": "^16.3.2",
|
|
"@types/node": "^24.13.6",
|
|
"@types/react": "19.3.0",
|
|
"@types/react-dom": "19.3.0",
|
|
"@vitejs/plugin-react": "^4.3.1",
|
|
"@vitest/eslint-plugin": "1.6.27",
|
|
"babel-plugin-react-compiler": "1.0.0",
|
|
"eslint": "9.39.1",
|
|
"eslint-config-prettier": "10.1.8",
|
|
"eslint-plugin-playwright": "2.12.0",
|
|
"eslint-plugin-react-hooks": "7.1.1",
|
|
"eslint-plugin-react-refresh": "0.4.24",
|
|
"globals": "16.5.0",
|
|
"jsdom": "^25.0.1",
|
|
"knip": "6.27.0",
|
|
"postcss": "^8.4.39",
|
|
"prettier": "3.6.2",
|
|
"tailwindcss": "^4.3.3",
|
|
"typescript": "^5.5.3",
|
|
"typescript-eslint": "8.46.0",
|
|
"vite": "^5.3.4",
|
|
"vitest": "^3.2.7"
|
|
}
|
|
}
|