mirror of
https://github.com/kjanat/livedash-node.git
synced 2026-01-16 17:12:10 +01:00
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
This commit is contained in:
@ -122,11 +122,11 @@ export default function GeographicMap({
|
||||
/**
|
||||
* Process a single country entry into CountryData
|
||||
*/
|
||||
function processCountryEntry(
|
||||
const processCountryEntry = useCallback((
|
||||
code: string,
|
||||
count: number,
|
||||
countryCoordinates: Record<string, [number, number]>
|
||||
): CountryData | null {
|
||||
): CountryData | null => {
|
||||
const coordinates = getCountryCoordinates(code, countryCoordinates);
|
||||
|
||||
if (coordinates) {
|
||||
@ -134,7 +134,7 @@ export default function GeographicMap({
|
||||
}
|
||||
|
||||
return null; // Skip if no coordinates found
|
||||
}
|
||||
}, []);
|
||||
|
||||
/**
|
||||
* Process all countries data into CountryData array
|
||||
@ -156,7 +156,7 @@ export default function GeographicMap({
|
||||
|
||||
return data;
|
||||
},
|
||||
[]
|
||||
[processCountryEntry]
|
||||
);
|
||||
|
||||
// Process country data when client is ready and dependencies change
|
||||
|
||||
Reference in New Issue
Block a user