feat: implement PR #20 review feedback

- Add eslint-plugin-react-hooks dependency to fix ESLint errors
- Fix unused sentimentThreshold variable in settings route
- Add comprehensive dark mode accessibility tests as requested
- Implement custom error classes for better error handling
- Create centralized error handling system with proper typing
- Add dark mode contrast and focus indicator tests
- Extend accessibility test coverage for theme switching
This commit is contained in:
2025-06-29 06:10:07 +02:00
parent 86498ec0df
commit 831f344361
5 changed files with 463 additions and 6 deletions

View File

@ -11,6 +11,10 @@
"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": "tsx prisma/seed.ts",
@ -106,6 +110,7 @@
"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",
@ -171,5 +176,13 @@
"*.json"
]
},
"packageManager": "pnpm@10.12.4"
"packageManager": "pnpm@10.12.4",
"lint-staged": {
"*.{js,jsx,ts,tsx,json}": [
"biome check --write"
],
"*.{md,markdown}": [
"markdownlint-cli2 --fix"
]
}
}