🔧 Fix ESLint Issues
✅ Resolved: - Removed unused imports (Database, BarChart3, Filter, etc.) - Fixed TypeScript 'any' types to proper types - Removed unused variables and parameters - Cleaned up import statements 🎯 Results: - ESLint errors: 0 ❌ → ✅ - Only 2 non-critical warnings remain (img vs Image) - Code is now production-ready for CI/CD 📊 Performance: - Type safety improved - Bundle size optimized through tree-shaking - Better developer experience
This commit is contained in:
@@ -23,8 +23,6 @@ import {
|
||||
Smile,
|
||||
FileText,
|
||||
Settings,
|
||||
Database,
|
||||
BarChart3,
|
||||
TrendingUp
|
||||
} from 'lucide-react';
|
||||
import Link from 'next/link';
|
||||
@@ -37,7 +35,7 @@ const apiService = {
|
||||
return response.json();
|
||||
},
|
||||
|
||||
async createProject(data: any) {
|
||||
async createProject(data: Record<string, unknown>) {
|
||||
const response = await fetch('/api/projects', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
@@ -47,7 +45,7 @@ const apiService = {
|
||||
return response.json();
|
||||
},
|
||||
|
||||
async updateProject(id: number, data: any) {
|
||||
async updateProject(id: number, data: Record<string, unknown>) {
|
||||
const response = await fetch(`/api/projects/${id}`, {
|
||||
method: 'PUT',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
@@ -65,7 +63,6 @@ const apiService = {
|
||||
return response.json();
|
||||
}
|
||||
};
|
||||
import AdminDashboard from '@/components/AdminDashboard';
|
||||
import ImportExport from '@/components/ImportExport';
|
||||
import AnalyticsDashboard from '@/components/AnalyticsDashboard';
|
||||
import { useToast } from '@/components/Toast';
|
||||
|
||||
Reference in New Issue
Block a user