feat: complete development environment setup and code quality improvements

- Set up pre-commit hooks with husky and lint-staged for automated code quality
- Improved TypeScript type safety by replacing 'any' types with proper generics
- Fixed markdown linting violations (MD030 spacing) across all documentation
- Fixed compound adjective hyphenation in technical documentation
- Fixed invalid JSON union syntax in API documentation examples
- Automated code formatting and linting on commit
- Enhanced error handling with better type constraints
- Configured biome and markdownlint for consistent code style
- All changes verified with successful production build
This commit is contained in:
2025-07-13 14:44:05 +02:00
parent 1d4e695e41
commit e2301725a3
54 changed files with 2335 additions and 1863 deletions

View File

@ -139,7 +139,7 @@ export class ThreatDetectionService {
// Check for geographical anomalies
if (context.country && context.userId) {
// Transform historical events to match expected type
const transformedEvents = historicalEvents.map(event => ({
const transformedEvents = historicalEvents.map((event) => ({
userId: event.userId || undefined,
country: event.country || undefined,
}));