This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
export default tseslint.config([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Remove tseslint.configs.recommended and replace with this
...tseslint.configs.recommendedTypeChecked,
// Alternatively, use this for stricter rules
...tseslint.configs.strictTypeChecked,
// Optionally, add this for stylistic rules
...tseslint.configs.stylisticTypeChecked,
// Other configs...
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:
// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'
export default tseslint.config([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Enable lint rules for React
reactX.configs['recommended-typescript'],
// Enable lint rules for React DOM
reactDom.configs.recommended,
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])run npm fund for details
~/project 4s ❯ npm run dev
project@0.0.0 dev vite
VITE v7.1.4 ready in 1765 ms
➜ Local: http://localhost:5173/ ➜ Network: use --host to expose ➜ press h + enter to show help ^C
~/project 19s ❯ npm run build
project@0.0.0 build tsc -b && vite build
src/App.tsx:26:1 - error TS6133: 'OAuthCallback' is declared but its value is never read.
26 import { OAuthCallback } from './components/OAuthCallback';
src/App.tsx:27:1 - error TS6133: 'AccountSettings' is declared but its value is never read.
27 import { AccountSettings } from './pages/AccountSettings';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/components/AccountLinking.tsx:10:3 - error TS6133: 'Settings' is declared but its value is never read.
10 Settings,
~~~~~~~~
src/components/AccountLinking.tsx:125:9 - error TS6133: 'primaryAccount' is declared but its value is never read.
125 const primaryAccount = getPrimaryAccount();
~~~~~~~~~~~~~~
src/components/AccountLinkingSimple.tsx:2:17 - error TS6133: 'User' is declared but its value is never read.
2 import { Link2, User, CheckCircle } from 'lucide-react';
~~~~
src/components/AccountLinkingSimple.tsx:2:23 - error TS6133: 'CheckCircle' is declared but its value is never read.
2 import { Link2, User, CheckCircle } from 'lucide-react';
~~~~~~~~~~~
src/components/AdvancedMLDashboard.tsx:4:1 - error TS6133: 'hybridFraudEngine' is declared but its value is never read.
4 import { hybridFraudEngine } from '../lib/advanced-fraud-integration';
src/components/AdvancedMLDashboard.tsx:5:1 - error TS6133: 'brandVoiceEngine' is declared but its value is never read.
5 import { brandVoiceEngine } from '../lib/brand-voice-engine';
src/components/AdvancedMLDashboard.tsx:8:3 - error TS6133: 'Settings' is declared but its value is never read.
8 Settings, Download, RefreshCw, AlertTriangle, CheckCircle,
~~~~~~~~
src/components/AdvancedMLDashboard.tsx:8:34 - error TS6133: 'AlertTriangle' is declared but its value is never read.
8 Settings, Download, RefreshCw, AlertTriangle, CheckCircle,
~~~~~~~~~~~~~
src/components/AdvancedMLDashboard.tsx:9:10 - error TS6133: 'Star' is declared but its value is never read.
9 Crown, Star, Sparkles, Rocket, Eye, Edit
~~~~
src/components/AdvancedMLDashboard.tsx:9:39 - error TS6133: 'Edit' is declared but its value is never read.
9 Crown, Star, Sparkles, Rocket, Eye, Edit
~~~~
src/components/AdvancedMLDashboard.tsx:39:13 - error TS6133: 'modelMetrics' is declared but its value is never read.
39 const modelMetrics = await dataPipelineEngine.getModelMetrics();
~~~~~~~~~~~~
src/components/AgencyDashboard.tsx:6:41 - error TS6133: 'Calendar' is declared but its value is never read.
6 Users, DollarSign, TrendingUp, Award, Calendar, Download,
~~~~~~~~
src/components/AgencyDashboard.tsx:7:30 - error TS6133: 'Target' is declared but its value is never read.
7 Plus, Settings, BarChart3, Target, Shield, Star, ArrowRight,
~~~~~~
src/components/AgencyDashboard.tsx:7:38 - error TS6133: 'Shield' is declared but its value is never read.
7 Plus, Settings, BarChart3, Target, Shield, Star, ArrowRight,
~~~~~~
src/components/AgencyDashboard.tsx:7:52 - error TS6133: 'ArrowRight' is declared but its value is never read.
7 Plus, Settings, BarChart3, Target, Shield, Star, ArrowRight,
~~~~~~~~~~
src/components/AgencyDashboard.tsx:8:14 - error TS6133: 'Pause' is declared but its value is never read.
8 Eye, Edit, Pause, Play, AlertTriangle, CheckCircle
~~~~~
src/components/AgencyDashboard.tsx:8:21 - error TS6133: 'Play' is declared but its value is never read.
8 Eye, Edit, Pause, Play, AlertTriangle, CheckCircle
~~~~
src/components/AgencyDashboardAdvanced.tsx:4:41 - error TS6133: 'Calendar' is declared but its value is never read.
4 Users, DollarSign, TrendingUp, Award, Calendar, Download,
~~~~~~~~
src/components/AgencyDashboardAdvanced.tsx:5:38 - error TS6133: 'Shield' is declared but its value is never read.
5 Plus, Settings, BarChart3, Target, Shield, Star, ArrowRight,
~~~~~~
src/components/AgencyDashboardAdvanced.tsx:5:52 - error TS6133: 'ArrowRight' is declared but its value is never read.
5 Plus, Settings, BarChart3, Target, Shield, Star, ArrowRight,
~~~~~~~~~~
src/components/AgencyDashboardAdvanced.tsx:6:14 - error TS6133: 'Pause' is declared but its value is never read.
6 Eye, Edit, Pause, Play, AlertTriangle, CheckCircle, Crown,
~~~~~
src/components/AgencyDashboardAdvanced.tsx:6:21 - error TS6133: 'Play' is declared but its value is never read.
6 Eye, Edit, Pause, Play, AlertTriangle, CheckCircle, Crown,
~~~~
src/components/AgencyDashboardAdvanced.tsx:7:18 - error TS6133: 'CreditCard' is declared but its value is never read.
7 Building, Zap, CreditCard, Globe, Palette, Code, Bell
~~~~~~~~~~
src/components/AgencyDashboardAdvanced.tsx:7:30 - error TS6133: 'Globe' is declared but its value is never read.
7 Building, Zap, CreditCard, Globe, Palette, Code, Bell
~~~~~
src/components/AgencyDashboardAdvanced.tsx:7:46 - error TS6133: 'Code' is declared but its value is never read.
7 Building, Zap, CreditCard, Globe, Palette, Code, Bell
~~~~
src/components/AgencyDashboardAdvanced.tsx:7:52 - error TS6133: 'Bell' is declared but its value is never read.
7 Building, Zap, CreditCard, Globe, Palette, Code, Bell
~~~~
src/components/AgencyDashboardAdvanced.tsx:277:56 - error TS2304: Cannot find name 'FileText'.
277 { id: 'reports', label: 'Reports', icon: FileText }
~~~~~~~~
src/components/AgencyManagementDashboard.tsx:5:34 - error TS6133: 'Globe' is declared but its value is never read.
5 Crown, Building, Zap, Palette, Globe, Code, Bell, Download,
~~~~~
src/components/AgencyManagementDashboard.tsx:5:41 - error TS6133: 'Code' is declared but its value is never read.
5 Crown, Building, Zap, Palette, Globe, Code, Bell, Download,
~~~~
src/components/AgencyManagementDashboard.tsx:5:47 - error TS6133: 'Bell' is declared but its value is never read.
5 Crown, Building, Zap, Palette, Globe, Code, Bell, Download,
~~~~
src/components/AgencyManagementDashboard.tsx:6:56 - error TS6133: 'Shield' is declared but its value is never read.
6 CheckCircle, AlertTriangle, Star, Target, BarChart3, Shield
~~~~~~
src/components/AnalyticsDashboard.tsx:4:14 - error TS6133: 'TrendingUp' is declared but its value is never read.
4 BarChart3, TrendingUp, Users, Eye, Target, Calendar, Download,
~~~~~~~~~~
src/components/AnalyticsDashboard.tsx:4:46 - error TS6133: 'Calendar' is declared but its value is never read.
4 BarChart3, TrendingUp, Users, Eye, Target, Calendar, Download,
~~~~~~~~
src/components/AnalyticsDashboard.tsx:5:3 - error TS6133: 'ArrowRight' is declared but its value is never read.
5 ArrowRight, Star, Shield, Brain, Zap, Crown, Building
~~~~~~~~~~
src/components/AnalyticsDashboard.tsx:5:36 - error TS6133: 'Zap' is declared but its value is never read.
5 ArrowRight, Star, Shield, Brain, Zap, Crown, Building
~~~
src/components/AnalyticsDashboard.tsx:5:48 - error TS6133: 'Building' is declared but its value is never read.
5 ArrowRight, Star, Shield, Brain, Zap, Crown, Building
~~~~~~~~
src/components/CMSDashboard.tsx:4:13 - error TS6133: 'Plus' is declared but its value is never read.
4 FileText, Plus, Calendar, TrendingUp, Eye, Edit, Trash2,
~~~~
src/components/CMSDashboard.tsx:4:19 - error TS6133: 'Calendar' is declared but its value is never read.
4 FileText, Plus, Calendar, TrendingUp, Eye, Edit, Trash2,
~~~~~~~~
src/components/CMSDashboard.tsx:4:29 - error TS6133: 'TrendingUp' is declared but its value is never read.
4 FileText, Plus, Calendar, TrendingUp, Eye, Edit, Trash2,
~~~~~~~~~~
src/components/CMSDashboard.tsx:4:52 - error TS6133: 'Trash2' is declared but its value is never read.
4 FileText, Plus, Calendar, TrendingUp, Eye, Edit, Trash2,
~~~~~~
src/components/CMSDashboard.tsx:5:11 - error TS6133: 'Filter' is declared but its value is never read.
5 Search, Filter, Download, Share2, BarChart3, Target,
~~~~~~
src/components/CMSDashboard.tsx:5:29 - error TS6133: 'Share2' is declared but its value is never read.
5 Search, Filter, Download, Share2, BarChart3, Target,
~~~~~~
src/components/CMSDashboard.tsx:6:10 - error TS6133: 'Users' is declared but its value is never read.
6 Clock, Users, MessageSquare, ExternalLink, CheckCircle,
~~~~~
src/components/CMSDashboard.tsx:6:46 - error TS6133: 'CheckCircle' is declared but its value is never read.
6 Clock, Users, MessageSquare, ExternalLink, CheckCircle,
~~~~~~~~~~~
src/components/CMSDashboard.tsx:7:3 - error TS6133: 'AlertTriangle' is declared but its value is never read.
7 AlertTriangle, Zap, Brain, Shield
~~~~~~~~~~~~~
src/components/CommunityHub.tsx:3:42 - error TS6133: 'MessageSquare' is declared but its value is never read.
3 import { Users, Star, Award, TrendingUp, MessageSquare, Calendar, Crown, Shield, Target, Zap } from 'lucide-react';
~~~~~~~~~~~~~
src/components/ComparisonAnalytics.tsx:3:21 - error TS6133: 'TrendingUp' is declared but its value is never read.
3 import { BarChart3, TrendingUp, Users, Eye, Target, ArrowRight } from 'lucide-react';
~~~~~~~~~~
src/components/ComparisonAnalytics.tsx:3:53 - error TS6133: 'ArrowRight' is declared but its value is never read.
3 import { BarChart3, TrendingUp, Users, Eye, Target, ArrowRight } from 'lucide-react';
~~~~~~~~~~
src/components/Dashboard.tsx:1:27 - error TS6133: 'useEffect' is declared but its value is never read.
1 import React, { useState, useEffect } from 'react';
~~~~~~~~~
src/components/Dashboard.tsx:6:37 - error TS6133: 'AlertTriangle' is declared but its value is never read.
6 Plus, Shield, TrendingUp, Target, AlertTriangle, CheckCircle,
~~~~~~~~~~~~~
src/components/Dashboard.tsx:7:17 - error TS6133: 'Play' is declared but its value is never read.
7 X, Eye, Edit, Play, Pause, BarChart3, Users, Calendar,
~~~~
src/components/Dashboard.tsx:7:23 - error TS6133: 'Pause' is declared but its value is never read.
7 X, Eye, Edit, Play, Pause, BarChart3, Users, Calendar,
~~~~~
src/components/Dashboard.tsx:7:41 - error TS6133: 'Users' is declared but its value is never read.
7 X, Eye, Edit, Play, Pause, BarChart3, Users, Calendar,
~~~~~
src/components/Dashboard.tsx:7:48 - error TS6133: 'Calendar' is declared but its value is never read.
7 X, Eye, Edit, Play, Pause, BarChart3, Users, Calendar,
~~~~~~~~
src/components/Dashboard.tsx:8:21 - error TS6133: 'Filter' is declared but its value is never read.
8 Download, Share2, Filter, Search, SortDesc
~~~~~~
src/components/Dashboard.tsx:8:37 - error TS6133: 'SortDesc' is declared but its value is never read.
8 Download, Share2, Filter, Search, SortDesc
~~~~~~~~
src/components/Dashboard.tsx:17:40 - error TS6133: 'subscription' is declared but its value is never read.
17 const { isPro, isEnterprise, isPaid, subscription } = useSubscription();
~~~~~~~~~~~~
src/components/Dashboard.tsx:318:21 - error TS6133: 'performancePrediction' is declared but its value is never read.
318 const performancePrediction = getPerformancePrediction(ad.performanceScore);
~~~~~~~~~~~~~~~~~~~~~
src/components/EnhancedDashboard.tsx:1:27 - error TS6133: 'useEffect' is declared but its value is never read.
1 import React, { useState, useEffect } from 'react';
~~~~~~~~~
src/components/EnhancedDashboard.tsx:11:37 - error TS6133: 'AlertTriangle' is declared but its value is never read.
11 Plus, Shield, TrendingUp, Target, AlertTriangle, CheckCircle,
~~~~~~~~~~~~~
src/components/EnhancedDashboard.tsx:11:52 - error TS6133: 'CheckCircle' is declared but its value is never read.
11 Plus, Shield, TrendingUp, Target, AlertTriangle, CheckCircle,
~~~~~~~~~~~
src/components/EnhancedDashboard.tsx:12:17 - error TS6133: 'Play' is declared but its value is never read.
12 X, Eye, Edit, Play, Pause, BarChart3, Users, Calendar,
~~~~
src/components/EnhancedDashboard.tsx:12:23 - error TS6133: 'Pause' is declared but its value is never read.
12 X, Eye, Edit, Play, Pause, BarChart3, Users, Calendar,
~~~~~
src/components/EnhancedDashboard.tsx:12:41 - error TS6133: 'Users' is declared but its value is never read.
12 X, Eye, Edit, Play, Pause, BarChart3, Users, Calendar,
~~~~~
src/components/EnhancedDashboard.tsx:12:48 - error TS6133: 'Calendar' is declared but its value is never read.
12 X, Eye, Edit, Play, Pause, BarChart3, Users, Calendar,
~~~~~~~~
src/components/EnhancedDashboard.tsx:13:21 - error TS6133: 'Filter' is declared but its value is never read.
13 Download, Share2, Filter, Search, SortDesc, Zap, Brain,
~~~~~~
src/components/EnhancedDashboard.tsx:13:37 - error TS6133: 'SortDesc' is declared but its value is never read.
13 Download, Share2, Filter, Search, SortDesc, Zap, Brain,
~~~~~~~~
src/components/EnhancedDashboard.tsx:46:40 - error TS6133: 'subscription' is declared but its value is never read.
46 const { isPro, isEnterprise, isPaid, subscription } = useSubscription();
~~~~~~~~~~~~
src/components/Header.tsx:1:17 - error TS6133: 'useState' is declared but its value is never read.
1 import React, { useState } from 'react';
~~~~~~~~
src/components/PerformancePredictionDemo.tsx:5:45 - error TS6133: 'AlertTriangle' is declared but its value is never read.
5 import { Brain, Shield, Target, TrendingUp, AlertTriangle, CheckCircle, Zap } from 'lucide-react';
~~~~~~~~~~~~~
src/components/Pricing.tsx:4:28 - error TS6133: 'formatPrice' is declared but its value is never read.
4 import { STRIPE_PRICE_IDS, formatPrice, SUBSCRIPTION_PLANS } from '../lib/stripe';
~~~~~~~~~~~
src/components/Pricing.tsx:4:41 - error TS6133: 'SUBSCRIPTION_PLANS' is declared but its value is never read.
4 import { STRIPE_PRICE_IDS, formatPrice, SUBSCRIPTION_PLANS } from '../lib/stripe';
~~~~~~~~~~~~~~~~~~
src/components/SubscriptionStatus.tsx:8:3 - error TS6133: 'ArrowRight' is declared but its value is never read.
8 ArrowRight, Shield, Star, CreditCard, Calendar
~~~~~~~~~~
src/components/TrackShareView.tsx:42:8 - error TS2339: Property 'catch' does not exist on type 'PromiseLike<void>'.
42 }).catch(error => {
~~~~~
src/components/TrackShareView.tsx:42:14 - error TS7006: Parameter 'error' implicitly has an 'any' type.
42 }).catch(error => {
~~~~~
src/hooks/useAccountLinking.ts:3:15 - error TS6196: 'LinkedAccount' is declared but never used.
3 import type { LinkedAccount, AccountLinkRequest, OAuthProvider, AccountLinkingState } from '../types';
~~~~~~~~~~~~~
src/hooks/useAccountLinking.ts:3:30 - error TS6196: 'AccountLinkRequest' is declared but never used.
3 import type { LinkedAccount, AccountLinkRequest, OAuthProvider, AccountLinkingState } from '../types';
~~~~~~~~~~~~~~~~~~
src/hooks/useAccountLinking.ts:287:15 - error TS6133: 'session' is declared but its value is never read.
287 (event, session) => {
~~~~~~~
src/hooks/useSubscription.ts:79:15 - error TS6133: 'session' is declared but its value is never read.
79 (event, session) => {
~~~~~~~
src/lib/advanced-fraud-integration.ts:45:11 - error TS6133: 'realTimeMonitoring' is declared but its value is never read.
45 private realTimeMonitoring: Map<string, any> = new Map();
~~~~~~~~~~~~~~~~~~
src/lib/advanced-fraud-integration.ts:135:42 - error TS6133: 'request' is declared but its value is never read.
135 private async analyzeWithHumanSecurity(request: any): Promise<FraudProviderResult> {
~~~~~~~
src/lib/advanced-fraud-integration.ts:162:39 - error TS6133: 'request' is declared but its value is never read.
162 private async analyzeWithClickCease(request: any): Promise<FraudProviderResult> {
~~~~~~~
src/lib/advanced-fraud-integration.ts:310:46 - error TS6133: 'riskScore' is declared but its value is never read.
310 private generateHybridPreventionStrategies(riskScore: number, results: any): string[] {
~~~~~~~~~
src/lib/advanced-fraud-integration.ts:345:33 - error TS6133: 'request' is declared but its value is never read.
345 private analyzeDevicePatterns(request: any): number {
~~~~~~~
src/lib/advanced-fraud-integration.ts:349:35 - error TS6133: 'request' is declared but its value is never read.
349 private analyzeBehaviorPatterns(request: any): number {
~~~~~~~
src/lib/advanced-fraud-integration.ts:353:33 - error TS6133: 'request' is declared but its value is never read.
353 private analyzeGeographicRisk(request: any): number {
~~~~~~~
src/lib/advanced-fraud-integration.ts:386:31 - error TS6133: 'providerId' is declared but its value is never read.
386 private getProviderFallback(providerId: string): FraudProviderResult {
~~~~~~~~~~
src/lib/advanced-fraud-integration.ts:397:31 - error TS6133: 'request' is declared but its value is never read.
397 private getFallbackAnalysis(request: any): HybridFraudAnalysis {
~~~~~~~
src/lib/agency-engine.ts:1:1 - error TS6133: 'supabase' is declared but its value is never read.
1 import { supabase } from './supabase';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/lib/agency-engine.ts:35:24 - error TS6133: 'partnerId' is declared but its value is never read.
35 async onboardPartner(partnerId: string): Promise<void> {
~~~~~~~~~
src/lib/agency-engine.ts:224:47 - error TS6133: 'period' is declared but its value is never read.
224 async calculateCommission(agencyId: string, period: string): Promise<{
~~~~~~
src/lib/agency-engine.ts:249:65 - error TS6133: 'data' is declared but its value is never read.
249 async sendPartnerNotification(agencyId: string, type: string, data: any): Promise<void> {
~~~~
src/lib/attribution-analytics-service.ts:117:17 - error TS6133: 'userId' is declared but its value is never read.
117 for (const [userId, journey] of userJourneys) {
~~~~~~
src/lib/attribution-analytics-service.ts:298:67 - error TS6133: 'index' is declared but its value is never read.
298 const mockResults: AttributionResult[] = campaignIds.map((id, index) => ({
~~~~~
src/lib/attribution-analytics.ts:107:17 - error TS6133: 'userId' is declared but its value is never read.
107 for (const [userId, journey] of userJourneys) {
~~~~~~
src/lib/attribution-analytics.ts:272:67 - error TS6133: 'index' is declared but its value is never read.
272 const mockResults: AttributionResult[] = campaignIds.map((id, index) => ({
~~~~~
src/lib/attribution-engine-advanced.ts:212:17 - error TS6133: 'userId' is declared but its value is never read.
212 for (const [userId, journey] of userJourneys) {
~~~~~~
src/lib/attribution-engine-advanced.ts:469:26 - error TS6133: 'channel' is declared but its value is never read.
469 return channels.map((channel, index) => {
~~~~~~~
src/lib/attribution-engine-advanced.ts:479:5 - error TS6133: 'transitions' is declared but its value is never read.
479 transitions: Map<string, Map<string, number>>,
~~~~~~~~~~~
src/lib/attribution-engine-advanced.ts:634:37 - error TS6133: 'results' is declared but its value is never read.
634 private analyzeChannelPerformance(results: AdvancedAttributionResult[]): Record<string, { revenue: number; roas: number }> {
~~~~~~~
src/lib/attribution-engine-advanced.ts:702:25 - error TS6133: 'report' is declared but its value is never read.
702 private convertToXLSX(report: AttributionReport): string {
~~~~~~
src/lib/brand-voice-engine.ts:175:39 - error TS6133: 'assets' is declared but its value is never read.
175 private async analyzeVisualIdentity(assets: BrandAssets): Promise<any> {
~~~~~~
src/lib/brand-voice-engine.ts:185:43 - error TS6133: 'assets' is declared but its value is never read.
185 private async extractMessagingFramework(assets: BrandAssets): Promise<any> {
~~~~~~
src/lib/brand-voice-engine.ts:203:48 - error TS6133: 'assets' is declared but its value is never read.
203 private async identifyComplianceRequirements(assets: BrandAssets): Promise<any> {
~~~~~~
src/lib/brand-voice-engine.ts:296:11 - error TS6133: 'creativeText' is declared but its value is never read.
296 const creativeText = creative.description || '';
~~~~~~~~~~~~
src/lib/brand-voice-engine.ts:297:11 - error TS6133: 'brandTone' is declared but its value is never read.
297 const brandTone = profile.voiceCharacteristics.tone;
~~~~~~~~~
src/lib/brand-voice-engine.ts:303:40 - error TS6133: 'creative' is declared but its value is never read.
303 private async analyzeVisualAlignment(creative: any, profile: BrandVoiceProfile): Promise<number> {
~~~~~~~~
src/lib/brand-voice-engine.ts:303:55 - error TS6133: 'profile' is declared but its value is never read.
303 private async analyzeVisualAlignment(creative: any, profile: BrandVoiceProfile): Promise<number> {
~~~~~~~
src/lib/brand-voice-engine.ts:308:42 - error TS6133: 'creative' is declared but its value is never read.
308 private async analyzeMessagingAccuracy(creative: any, profile: BrandVoiceProfile): Promise<number> {
~~~~~~~~
src/lib/brand-voice-engine.ts:308:57 - error TS6133: 'profile' is declared but its value is never read.
308 private async analyzeMessagingAccuracy(creative: any, profile: BrandVoiceProfile): Promise<number> {
~~~~~~~
src/lib/brand-voice-engine.ts:313:44 - error TS6133: 'creative' is declared but its value is never read.
313 private async analyzeComplianceAdherence(creative: any, profile: BrandVoiceProfile): Promise<number> {
~~~~~~~~
src/lib/brand-voice-engine.ts:313:59 - error TS6133: 'profile' is declared but its value is never read.
313 private async analyzeComplianceAdherence(creative: any, profile: BrandVoiceProfile): Promise<number> {
~~~~~~~
src/lib/brand-voice-engine.ts:342:61 - error TS6133: 'profile' is declared but its value is never read.
342 private generateImprovementSuggestions(violations: any[], profile: BrandVoiceProfile): string[] {
~~~~~~~
src/lib/cms-engine-advanced.ts:1:1 - error TS6133: 'supabase' is declared but its value is never read.
1 import { supabase } from './supabase';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/lib/cms-engine-advanced.ts:90:7 - error TS2353: Object literal may only specify known properties, and 'highlight' does not exist in type 'MarkedOptions<string, string>'.
90 highlight: function(code, lang) {
~~~~~~~~~
src/lib/cms-engine-advanced.ts:90:27 - error TS7006: Parameter 'code' implicitly has an 'any' type.
90 highlight: function(code, lang) {
~~~~
src/lib/cms-engine-advanced.ts:90:33 - error TS7006: Parameter 'lang' implicitly has an 'any' type.
90 highlight: function(code, lang) {
~~~~
src/lib/cms-engine-advanced.ts:115:54 - error TS18004: No value exists in scope for the shorthand property 'campaignBudget'. Either declare one or provide an initializer.
115 # Autopsy: {{competitorName}} Campaign Disaster - ${{campaignBudget}} Lost in {{timeframe}}
~~~~~~~~~~~~~~
src/lib/cms-engine-advanced.ts:119:154 - error TS18004: No value exists in scope for the shorthand property 'wastedSpend'. Either declare one or provide an initializer.
119 A comprehensive forensic analysis of a {{industry}} campaign that used {{competitorName}}'s platform, resulting in catastrophic performance decay and ${{wastedSpend}} in wasted ad spend due to preventable failures.
~~~~~~~~~~~
src/lib/cms-engine-advanced.ts:125:16 - error TS18004: No value exists in scope for the shorthand property 'campaignBudget'. Either declare one or provide an initializer.
125 **Budget**: ${{campaignBudget}}
~~~~~~~~~~~~~~
src/lib/cms-engine-advanced.ts:133:15 - error TS18004: No value exists in scope for the shorthand property 'initialCpa'. Either declare one or provide an initializer.
133 - **CPA**: ${{initialCpa}}
~~~~~~~~~~
src/lib/cms-engine-advanced.ts:138:15 - error TS18004: No value exists in scope for the shorthand property 'finalCpa'. Either declare one or provide an initializer.
138 - **CPA**: ${{finalCpa}} ({{cpaIncrease}}% increase)
~~~~~~~~
src/lib/cms-engine-advanced.ts:140:24 - error TS18004: No value exists in scope for the shorthand property 'wastedSpend'. Either declare one or provide an initializer.
140 - **Wasted Spend**: ${{wastedSpend}}
~~~~~~~~~~~
src/lib/cms-engine-advanced.ts:149:14 - error TS18004: No value exists in scope for the shorthand property 'cost'. Either declare one or provide an initializer.
149 **Cost**: ${{cost}}
~~~~
src/lib/cms-engine-advanced.ts:161:28 - error TS18004: No value exists in scope for the shorthand property 'fraudCost'. Either declare one or provide an initializer.
161 - **Total Fraud Cost**: ${{fraudCost}}
~~~~~~~~~
src/lib/cms-engine-advanced.ts:177:28 - error TS18004: No value exists in scope for the shorthand property 'fraudSavings'. Either declare one or provide an initializer.
177 - **Fraud Prevention**: ${{fraudSavings}}
~~~~~~~~~~~~
src/lib/cms-engine-advanced.ts:178:36 - error TS18004: No value exists in scope for the shorthand property 'performanceSavings'. Either declare one or provide an initializer.
178 - **Performance Optimization**: ${{performanceSavings}}
~~~~~~~~~~~~~~~~~~
src/lib/cms-engine-advanced.ts:179:25 - error TS18004: No value exists in scope for the shorthand property 'totalSavings'. Either declare one or provide an initializer.
179 - **Total Savings**: ${{totalSavings}}
~~~~~~~~~~~~
src/lib/cms-engine-advanced.ts:646:12 - error TS7053: Element implicitly has an 'any' type because expression of type 'string | number | symbol' can't be used to index type '{ pricing: string[]; features: string[]; support: string[]; performance: string[]; } | { pricing: string[]; features: string[]; support: string[]; performance: string[]; } | { pricing: string[]; features: string[]; support: string[]; performance: string[]; }'.
No index signature with a parameter of type 'string' was found on type '{ pricing: string[]; features: string[]; support: string[]; performance: string[]; } | { pricing: string[]; features: string[]; support: string[]; performance: string[]; } | { pricing: string[]; features: string[]; support: string[]; performance: string[]; }'.
646 return advantages[competitor as keyof typeof advantages]?.[focusArea as keyof any] || [];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/lib/cms-engine-advanced.ts:689:76 - error TS6133: 'match' is declared but its value is never read.
689 populated = populated.replace(/{{#each (\w+)}}([\s\S]*?){{\/each}}/g, (match, arrayName, content) => {
~~~~~
src/lib/cms-engine-advanced.ts:832:29 - error TS6133: 'postId' is declared but its value is never read.
832 async getContentAnalytics(postId: string): Promise<{
~~~~~~
src/lib/cms-engine.ts:1:1 - error TS6133: 'supabase' is declared but its value is never read.
1 import { supabase } from './supabase';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/lib/cms-engine.ts:2:53 - error TS6196: 'ContentTemplate' is declared but never used.
2 import type { BlogPost, AutopsyPost, CaseStudyPost, ContentTemplate, SEOData } from '../types/cms';
~~~~~~~~~~~~~~~
src/lib/cms-engine.ts:152:16 - error TS18004: No value exists in scope for the shorthand property 'campaignBudget'. Either declare one or provide an initializer.
152 **Budget**: ${{campaignBudget}}
~~~~~~~~~~~~~~
src/lib/cms-engine.ts:171:108 - error TS18004: No value exists in scope for the shorthand property 'estimatedSavings'. Either declare one or provide an initializer.
171 With AdGen AI's integrated fraud detection and performance prediction, this campaign could have saved **${{estimatedSavings}}** in wasted spend.
~~~~~~~~~~~~~~~~
src/lib/cms-engine.ts:252:22 - error TS6133: 'postId' is declared but its value is never read.
252 async getAnalytics(postId: string): Promise<{
~~~~~~
src/lib/data-pipeline-engine.ts:233:42 - error TS6133: 'features' is declared but its value is never read.
233 private async generateSegmentForecasts(features: any, prediction: any): Promise<any[]> {
~~~~~~~~
src/lib/data-pipeline-engine.ts:272:43 - error TS6133: 'creativeId' is declared but its value is never read.
272 private async calculateVisualComplexity(creativeId: string): Promise<number> {
~~~~~~~~~~
src/lib/data-pipeline-engine.ts:287:41 - error TS6133: 'creativeId' is declared but its value is never read.
287 private async calculateBrandAlignment(creativeId: string): Promise<number> {
~~~~~~~~~~
src/lib/data-pipeline-engine.ts:308:37 - error TS6133: 'audience' is declared but its value is never read.
308 private calculateDemographicMatch(audience: any): number {
~~~~~~~~
src/lib/data-pipeline-engine.ts:336:42 - error TS6133: 'creativeId' is declared but its value is never read.
336 private async getHistoricalPerformance(creativeId: string): Promise<number> {
~~~~~~~~~~
src/lib/data-pipeline-engine.ts:341:37 - error TS6133: 'platform' is declared but its value is never read.
341 private calculateMarketSaturation(platform: string): number {
~~~~~~~~
src/lib/data-pipeline-engine.ts:407:17 - error TS6133: 'modelId' is declared but its value is never read.
407 for (const [modelId, model] of this.models) {
~~~~~~~
src/lib/fraud-detection-api.ts:98:19 - error TS2339: Property 'getFallbackAnalysis' does not exist on type 'FraudDetectionAPI'.
98 return this.getFallbackAnalysis(request);
~~~~~~~~~~~~~~~~~~~
src/lib/fraud-detection-api.ts:171:37 - error TS6133: 'request' is declared but its value is never read.
171 private analyzeDeviceFingerprints(request: FraudAnalysisRequest) {
~~~~~~~
src/lib/fraud-detection-api.ts:195:35 - error TS6133: 'request' is declared but its value is never read.
195 private analyzeBehaviorPatterns(request: FraudAnalysisRequest) {
~~~~~~~
src/lib/fraud-detection-api.ts:213:33 - error TS6133: 'request' is declared but its value is never read.
213 private analyzeGeographicRisk(request: FraudAnalysisRequest) {
~~~~~~~
src/lib/fraud-detection-api.ts:230:35 - error TS6133: 'request' is declared but its value is never read.
230 private analyzeTemporalPatterns(request: FraudAnalysisRequest) {
~~~~~~~
src/lib/fraud-detection-api.ts:271:53 - error TS6133: 'score' is declared but its value is never read.
271 private generateRecommendation(riskLevel: string, score: number): string {
~~~~~
src/lib/fraud-detection-api.ts:325:29 - error TS6133: 'endpoint' is declared but its value is never read.
325 private async makeAPICall(endpoint: string, data: any): Promise<any> {
~~~~~~~~
src/lib/fraud-detection-api.ts:325:47 - error TS6133: 'data' is declared but its value is never read.
325 private async makeAPICall(endpoint: string, data: any): Promise<any> {
~~~~
src/lib/fraud-detection-api.ts:331:38 - error TS6133: 'response' is declared but its value is never read.
331 private parseHumanSecurityResponse(response: any, request: FraudAnalysisRequest): DetailedFraudAnalysis {
~~~~~~~~
src/lib/fraud-detection-api.ts:333:5 - error TS2740: Type 'Promise<DetailedFraudAnalysis>' is missing the following properties from type 'DetailedFraudAnalysis': overallRiskScore, riskLevel, confidence, analysisFactors, and 4 more.
333 return this.analyzeWithInternalEngine(request);
~~~~~~
src/lib/fraud-detection-api.ts:336:35 - error TS6133: 'response' is declared but its value is never read.
336 private parseClickCeaseResponse(response: any, request: FraudAnalysisRequest): DetailedFraudAnalysis {
~~~~~~~~
src/lib/fraud-detection-api.ts:338:5 - error TS2740: Type 'Promise<DetailedFraudAnalysis>' is missing the following properties from type 'DetailedFraudAnalysis': overallRiskScore, riskLevel, confidence, analysisFactors, and 4 more.
338 return this.analyzeWithInternalEngine(request);
~~~~~~
src/lib/fraud-detection-api.ts:341:35 - error TS6133: 'response' is declared but its value is never read.
341 private parseFraudlogixResponse(response: any, request: FraudAnalysisRequest): DetailedFraudAnalysis {
~~~~~~~~
src/lib/fraud-detection-api.ts:343:5 - error TS2740: Type 'Promise<DetailedFraudAnalysis>' is missing the following properties from type 'DetailedFraudAnalysis': overallRiskScore, riskLevel, confidence, analysisFactors, and 4 more.
343 return this.analyzeWithInternalEngine(request);
~~~~~~
src/lib/fraud-detection-service.ts:22:11 - error TS6133: 'apiKey' is declared but its value is never read.
22 private apiKey: string;
~~~~~~
src/lib/fraud-detection-service.ts:23:11 - error TS6133: 'baseUrl' is declared but its value is never read.
23 private baseUrl: string;
~~~~~~~
src/lib/fraud-detection-service.ts:75:33 - error TS6133: 'request' is declared but its value is never read.
75 private analyzeDevicePatterns(request: FraudAnalysisRequest): number {
~~~~~~~
src/lib/fraud-detection-service.ts:83:35 - error TS6133: 'request' is declared but its value is never read.
83 private analyzeBehaviorPatterns(request: FraudAnalysisRequest): number {
~~~~~~~
src/lib/fraud-detection-service.ts:91:33 - error TS6133: 'request' is declared but its value is never read.
91 private analyzeGeographicRisk(request: FraudAnalysisRequest): number {
~~~~~~~
src/lib/fraud-detection-service.ts:99:35 - error TS6133: 'request' is declared but its value is never read.
99 private analyzeTemporalPatterns(request: FraudAnalysisRequest): number {
~~~~~~~
src/lib/fraud-detection-service.ts:148:53 - error TS6133: 'score' is declared but its value is never read.
148 private generateRecommendation(riskLevel: string, score: number): string {
~~~~~
src/lib/fraud-detection-service.ts:202:31 - error TS6133: 'request' is declared but its value is never read.
202 private getFallbackAnalysis(request: FraudAnalysisRequest): FraudDetectionResult {
~~~~~~~
src/lib/fraud-detection.ts:19:11 - error TS6133: 'apiKey' is declared but its value is never read.
19 private apiKey: string;
~~~~~~
src/lib/fraud-detection.ts:20:11 - error TS6133: 'baseUrl' is declared but its value is never read.
20 private baseUrl: string;
~~~~~~~
src/lib/fraud-detection.ts:57:33 - error TS6133: 'campaignData' is declared but its value is never read.
57 private analyzeTrafficPattern(campaignData: any): TrafficPattern {
~~~~~~~~~~~~
src/lib/fraud-detection.ts:79:37 - error TS6133: 'campaignData' is declared but its value is never read.
79 private analyzeDeviceFingerprints(campaignData: any): number {
~~~~~~~~~~~~
src/lib/fraud-detection.ts:85:35 - error TS6133: 'campaignData' is declared but its value is never read.
85 private analyzeBehaviorPatterns(campaignData: any): number {
~~~~~~~~~~~~
src/lib/fraud-detection.ts:157:72 - error TS6133: 'factors' is declared but its value is never read.
157 private generateRecommendation(riskLevel: 'low' | 'medium' | 'high', factors: string[]): string {
~~~~~~~
src/lib/fraud-detection.ts:187:31 - error TS6133: 'campaignData' is declared but its value is never read.
187 private getFallbackAnalysis(campaignData: any): FraudAnalysis {
~~~~~~~~~~~~
src/lib/fraud-detection.ts:198:32 - error TS6133: 'timeRange' is declared but its value is never read.
198 async getHistoricalFraudData(timeRange: string): Promise<any[]> {
~~~~~~~~~
src/lib/fraud-detection.ts:203:48 - error TS6133: 'filters' is declared but its value is never read.
203 async updateFraudFilters(campaignId: string, filters: any): Promise<boolean> {
~~~~~~~
src/lib/ml-performance-api.ts:213:63 - error TS6133: 'cpa' is declared but its value is never read.
213 private generateInsights(features: MLFeatures, ctr: number, cpa: number, roas: number): string[] {
~~~
src/lib/ml-performance-engine.ts:198:33 - error TS6133: 'creative' is declared but its value is never read.
198 private calculateColorHarmony(creative: any): number {
~~~~~~~~
src/lib/ml-performance-engine.ts:213:35 - error TS6133: 'creative' is declared but its value is never read.
213 private calculateBrandAlignment(creative: any): number {
~~~~~~~~
src/lib/ml-performance-engine.ts:364:5 - error TS6133: 'cpa' is declared but its value is never read.
364 cpa: number,
~~~
src/lib/ml-performance-engine.ts:498:33 - error TS6133: 'creative' is declared but its value is never read.
498 private getFallbackPrediction(creative: any): PerformancePrediction {
~~~~~~~~
src/lib/performance-prediction.ts:157:56 - error TS6133: 'ctr' is declared but its value is never read.
157 private generateInsights(features: CreativeFeatures, ctr: number, cpa: number, confidence: number): string[] {
~~~
src/lib/performance-prediction.ts:157:69 - error TS6133: 'cpa' is declared but its value is never read.
157 private generateInsights(features: CreativeFeatures, ctr: number, cpa: number, confidence: number): string[] {
~~~
src/lib/performance-prediction.ts:157:82 - error TS6133: 'confidence' is declared but its value is never read.
157 private generateInsights(features: CreativeFeatures, ctr: number, cpa: number, confidence: number): string[] {
~~~~~~~~~~
src/pages/ShareChangelog.tsx:5:33 - error TS6133: 'Zap' is declared but its value is never read.
5 import { Calendar, CheckCircle, Zap, Shield, Brain, Target } from 'lucide-react';
~~~
src/pages/ShareChangelog.tsx:5:38 - error TS6133: 'Shield' is declared but its value is never read.
5 import { Calendar, CheckCircle, Zap, Shield, Brain, Target } from 'lucide-react';
~~~~~~
src/pages/ShareChangelog.tsx:5:46 - error TS6133: 'Brain' is declared but its value is never read.
5 import { Calendar, CheckCircle, Zap, Shield, Brain, Target } from 'lucide-react';
~~~~~
src/pages/ShareChangelog.tsx:5:53 - error TS6133: 'Target' is declared but its value is never read.
5 import { Calendar, CheckCircle, Zap, Shield, Brain, Target } from 'lucide-react';
~~~~~~
src/pages/SharePressKit.tsx:5:44 - error TS6133: 'TrendingUp' is declared but its value is never read.
5 import { Download, Image, FileText, Users, TrendingUp, Shield, Crown } from 'lucide-react';
~~~~~~~~~~
src/pages/SharePressKit.tsx:5:64 - error TS6133: 'Crown' is declared but its value is never read.
5 import { Download, Image, FileText, Users, TrendingUp, Shield, Crown } from 'lucide-react';
~~~~~
src/pages/SharePressKit.tsx:189:16 - error TS2304: Cannot find name 'Brain'.
189 <Brain className="w-8 h-8 text-primary-600 mb-3" />
~~~~~
src/pages/SharePressKit.tsx:197:16 - error TS2304: Cannot find name 'Target'.
197 <Target className="w-8 h-8 text-warning-600 mb-3" />
~~~~~~
src/pages/ShareSummary.tsx:6:43 - error TS6133: 'Building' is declared but its value is never read.
6 Shield, TrendingUp, Target, Zap, Crown, Building,
~~~~~~~~
Found 193 errors.
~/project 11s
❯