denshooter
6fd4756f35
fix: resolve all lint errors, improve type safety, and remove unused code
...
Dev Deployment (Zero Downtime) / deploy-dev (push) Failing after 7m26s
Remove unused imports, replace `any` types with proper interfaces in directus.ts
and i18n-loader.ts, exclude scripts/ and coverage/ from ESLint, and fix
unused variable warnings across the codebase.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-17 14:46:35 +01:00
Dennis Konkol
604c5077d9
🚀 Migrate to ESLint CLI & Fix All Issues
...
✅ ESLint CLI Migration:
- Migrated from deprecated 'next lint' to modern 'eslint .'
- Updated package.json script: 'lint': 'eslint .'
- Updated eslint.config.mjs with Next.js ignores
- No more deprecation warnings
✅ Fixed ESLint Errors:
- Added displayName to React components in jest.setup.ts
- Replaced 'any' types with proper TypeScript types
- Fixed require() import in next.config.ts → ES6 import
- Fixed Difficulty enum values (Beginner → BEGINNER, etc.)
✅ Build Status:
- ESLint: 0 errors, 0 warnings ✅
- TypeScript: All type errors resolved ✅
- Build: Successful compilation ✅
- 22 routes generated successfully ✅
🎯 Ready for Next.js 16:
- No deprecated dependencies
- Modern ESLint configuration
- Future-proof codebase
2025-09-05 23:05:52 +00:00