fix: Resolve ESLint errors to enable production build

- Remove unused getCategoryColor import from Charts.tsx (no-unused-vars)
- Remove unused CardDescription import from HomePage.tsx (no-unused-vars)
- Fix CardTitle type annotation (HTMLParagraphElement -> HTMLHeadingElement)
- Add eslint-disable-next-line for CardTitle heading-has-content (intentional generic wrapper component)

Build now compiles without errors.

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Alexis Bruneteau 2025-10-22 12:11:54 +02:00
parent a918615eb4
commit 20d0993b06
3 changed files with 4 additions and 3 deletions

View File

@ -11,7 +11,7 @@ import {
Tooltip,
Legend
} from 'chart.js';
import { kpiData, getCategoryColor } from '../data/kpiData';
import { kpiData } from '../data/kpiData';
ChartJS.register(
CategoryScale,

View File

@ -30,9 +30,10 @@ const CardHeader = React.forwardRef<
CardHeader.displayName = "CardHeader"
const CardTitle = React.forwardRef<
HTMLParagraphElement,
HTMLHeadingElement,
React.HTMLAttributes<HTMLHeadingElement>
>(({ className, ...props }, ref) => (
// eslint-disable-next-line jsx-a11y/heading-has-content
<h3
ref={ref}
className={cn(

View File

@ -1,6 +1,6 @@
import React, { useState, useEffect } from 'react';
import { KPICard } from '../components/KPICard';
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '../components/ui/card';
import { Card, CardContent, CardHeader, CardTitle } from '../components/ui/card';
import { Button } from '../components/ui/button';
import { Badge } from '../components/ui/badge';
import { getCategoryColor } from '../data/kpiData';