Files
livedash-node/package.json
Kaj Kowalski 1eea2cc3e4 refactor: fix biome linting issues and update project documentation
- Fix 36+ biome linting issues reducing errors/warnings from 227 to 191
- Replace explicit 'any' types with proper TypeScript interfaces
- Fix React hooks dependencies and useCallback patterns
- Resolve unused variables and parameter assignment issues
- Improve accessibility with proper label associations
- Add comprehensive API documentation for admin and security features
- Update README.md with accurate PostgreSQL setup and current tech stack
- Create complete documentation for audit logging, CSP monitoring, and batch processing
- Fix outdated project information and missing developer workflows
2025-07-12 00:28:09 +02:00

225 lines
8.1 KiB
JSON

{
"name": "livedash-node",
"type": "module",
"version": "0.2.0",
"private": true,
"scripts": {
"build": "next build",
"dev": "pnpm exec tsx server.ts",
"dev:next-only": "next dev --turbopack",
"format": "npx prettier --write .",
"format:check": "npx prettier --check .",
"lint": "next lint",
"lint:fix": "npx eslint --fix",
"biome:check": "biome check .",
"biome:fix": "biome check --write .",
"biome:format": "biome format --write .",
"biome:lint": "biome lint .",
"prisma:generate": "prisma generate",
"prisma:migrate": "prisma migrate dev",
"prisma:seed": "pnpm exec tsx prisma/seed.ts",
"prisma:seed:platform": "pnpm exec tsx prisma/seed-platform.ts",
"prisma:push": "prisma db push",
"prisma:push:force": "prisma db push --force-reset",
"prisma:studio": "prisma studio",
"db:check": "pnpm exec tsx scripts/check-database-config.ts",
"start": "node server.mjs",
"test": "concurrently 'vitest run' 'playwright test'",
"test:coverage": "concurrently \"vitest run --coverage\" \"echo 'To add playwright coverage thingy'\"",
"test:vitest": "vitest run",
"test:vitest:watch": "vitest",
"test:vitest:coverage": "vitest run --coverage",
"test:security-headers": "pnpm exec tsx scripts/test-security-headers.ts",
"test:security": "pnpm test:vitest tests/unit/http-security-headers.test.ts tests/integration/security-headers-basic.test.ts tests/unit/security.test.ts",
"test:csp": "pnpm exec tsx scripts/test-csp.ts",
"test:csp:validate": "pnpm exec tsx scripts/validate-csp-implementation.ts",
"test:csp:full": "pnpm test:csp && pnpm test:csp:validate && pnpm test:vitest tests/unit/enhanced-csp.test.ts tests/integration/csp-middleware.test.ts tests/integration/csp-report-endpoint.test.ts",
"lint:md": "markdownlint-cli2 \"**/*.md\" \"!.trunk/**\" \"!.venv/**\" \"!node_modules/**\"",
"lint:md:fix": "markdownlint-cli2 --fix \"**/*.md\" \"!.trunk/**\" \"!.venv/**\" \"!node_modules/**\"",
"migration:backup": "pnpm exec tsx scripts/migration/backup-database.ts full",
"migration:backup:schema": "pnpm exec tsx scripts/migration/backup-database.ts schema",
"migration:backup:data": "pnpm exec tsx scripts/migration/backup-database.ts data",
"migration:validate-db": "pnpm exec tsx scripts/migration/validate-database.ts",
"migration:validate-env": "pnpm exec tsx scripts/migration/environment-migration.ts validate",
"migration:migrate-env": "pnpm exec tsx scripts/migration/environment-migration.ts",
"migration:pre-check": "pnpm exec tsx scripts/migration/pre-deployment-checks.ts",
"migration:deploy": "pnpm exec tsx scripts/migration/deploy.ts",
"migration:deploy:dry-run": "pnpm exec tsx scripts/migration/deploy.ts --dry-run",
"migration:health-check": "pnpm exec tsx scripts/migration/health-checks.ts",
"migration:health-report": "pnpm exec tsx scripts/migration/health-checks.ts --report",
"migration:rollback": "pnpm exec tsx scripts/migration/rollback.ts",
"migration:rollback:dry-run": "pnpm exec tsx scripts/migration/rollback.ts --dry-run",
"migration:rollback:snapshot": "pnpm exec tsx scripts/migration/rollback.ts snapshot",
"migration:test": "pnpm migration:health-check && pnpm test",
"migration:test-trpc": "pnpm exec tsx scripts/migration/trpc-endpoint-tests.ts",
"migration:test-batch": "pnpm exec tsx scripts/migration/batch-processing-tests.ts",
"migration:test-all": "pnpm migration:test-trpc && pnpm migration:test-batch && pnpm migration:health-check",
"migration:full": "pnpm migration:pre-check && pnpm migration:backup && pnpm migration:deploy && pnpm migration:health-check"
},
"dependencies": {
"@prisma/adapter-pg": "^6.10.1",
"@prisma/client": "^6.10.1",
"@radix-ui/react-accordion": "^1.2.11",
"@radix-ui/react-alert-dialog": "^1.1.14",
"@radix-ui/react-collapsible": "^1.1.11",
"@radix-ui/react-dialog": "^1.1.14",
"@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-separator": "^1.1.7",
"@radix-ui/react-slider": "^1.3.5",
"@radix-ui/react-slot": "^1.2.3",
"@radix-ui/react-switch": "^1.2.5",
"@radix-ui/react-tabs": "^1.1.12",
"@radix-ui/react-toast": "^1.2.14",
"@radix-ui/react-toggle": "^1.1.9",
"@radix-ui/react-toggle-group": "^1.1.10",
"@radix-ui/react-tooltip": "^1.2.7",
"@rapideditor/country-coder": "^5.4.0",
"@tanstack/react-query": "^5.81.5",
"@tanstack/react-table": "^8.21.3",
"@trpc/client": "^11.4.3",
"@trpc/next": "^11.4.3",
"@trpc/react-query": "^11.4.3",
"@trpc/server": "^11.4.3",
"@types/canvas-confetti": "^1.9.0",
"@types/d3": "^7.4.3",
"@types/d3-cloud": "^1.2.9",
"@types/d3-selection": "^3.0.11",
"@types/geojson": "^7946.0.16",
"@types/leaflet": "^1.9.19",
"@types/node-fetch": "^2.6.12",
"bcryptjs": "^3.0.2",
"canvas-confetti": "^1.9.3",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"csrf": "^3.1.0",
"csv-parse": "^5.6.0",
"d3": "^7.9.0",
"d3-cloud": "^1.2.7",
"d3-selection": "^3.0.0",
"date-fns": "^4.1.0",
"i18n-iso-countries": "^7.14.0",
"iso-639-1": "^3.1.5",
"leaflet": "^1.9.4",
"lucide-react": "^0.525.0",
"motion": "^12.19.2",
"next": "^15.3.4",
"next-auth": "^4.24.11",
"next-themes": "^0.4.6",
"node-cron": "^4.1.1",
"node-fetch": "^3.3.2",
"pg": "^8.16.3",
"react": "^19.1.0",
"react-day-picker": "^9.7.0",
"react-dom": "^19.1.0",
"react-leaflet": "^5.0.0",
"react-markdown": "^10.1.0",
"recharts": "^3.0.2",
"rehype-raw": "^7.0.0",
"sonner": "^2.0.5",
"superjson": "^2.2.2",
"tailwind-merge": "^3.3.1",
"vaul": "^1.1.2",
"zod": "^3.25.67"
},
"devDependencies": {
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.30.0",
"@next/eslint-plugin-next": "^15.3.4",
"@playwright/test": "^1.53.1",
"@tailwindcss/postcss": "^4.1.11",
"@tanstack/react-query-devtools": "^5.81.5",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.3.0",
"@types/node": "^24.0.6",
"@types/node-cron": "^3.0.11",
"@types/pg": "^8.15.4",
"@types/react": "^19.1.8",
"@types/react-dom": "^19.1.6",
"@typescript-eslint/eslint-plugin": "^8.35.0",
"@typescript-eslint/parser": "^8.35.0",
"@vitejs/plugin-react": "^4.6.0",
"@vitest/coverage-v8": "^3.2.4",
"concurrently": "^9.2.0",
"eslint": "^9.30.0",
"eslint-config-next": "^15.3.4",
"eslint-plugin-prettier": "^5.5.1",
"eslint-plugin-react-hooks": "^5.2.0",
"jest-axe": "^10.0.0",
"jsdom": "^26.1.0",
"markdownlint-cli2": "^0.18.1",
"node-mocks-http": "^1.17.2",
"postcss": "^8.5.6",
"prettier": "^3.6.2",
"prettier-plugin-jinja-template": "^2.1.0",
"prisma": "^6.10.1",
"tailwindcss": "^4.1.11",
"ts-node": "^10.9.2",
"tsx": "^4.20.3",
"tw-animate-css": "^1.3.4",
"typescript": "^5.8.3",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^3.2.4"
},
"prettier": {
"bracketSpacing": true,
"endOfLine": "auto",
"printWidth": 80,
"semi": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false,
"overrides": [
{
"files": [
"*.md",
"*.markdown"
],
"options": {
"tabWidth": 2,
"useTabs": false,
"proseWrap": "preserve",
"printWidth": 100
}
}
],
"plugins": [
"prettier-plugin-jinja-template"
]
},
"markdownlint-cli2": {
"config": {
"MD007": {
"indent": 4,
"start_indented": false,
"start_indent": 4
},
"MD013": false,
"MD030": {
"ul_single": 3,
"ol_single": 2,
"ul_multi": 3,
"ol_multi": 2
},
"MD033": false
},
"ignores": [
"node_modules",
".git",
"*.json"
]
},
"packageManager": "pnpm@10.12.4",
"lint-staged": {
"*.{js,jsx,ts,tsx,json}": [
"biome check --write"
],
"*.{md,markdown}": [
"markdownlint-cli2 --fix"
]
}
}