Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"extends": ["next/core-web-vitals", "next/typescript", "prettier"],
"plugins": ["prettier"],
"plugins": ["prettier", "unused-imports"],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": "off",
"react/no-unescaped-entities": "warn",
"react/display-name": "warn",
"@typescript-eslint/ban-ts-comment": "warn",
Expand Down
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const eslintConfig = [
{
plugins: {
prettier: prettierPlugin,
'unused-imports': unusedImportsPlugin,
},
rules: {
// TypeScript & General Rules
Expand Down
108 changes: 69 additions & 39 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"zustand": "^5.0.10"
},
"devDependencies": {
"@eslint/eslintrc": "^3",
"@eslint/eslintrc": "^3.3.5",
"@tailwindcss/postcss": "^4.0.0",
"@tailwindcss/vite": "^4.2.0",
"@testing-library/dom": "^10.4.1",
Expand All @@ -94,6 +94,8 @@
"@types/react": "^18.3.27",
"@types/react-big-calendar": "1.16.3",
"@types/react-dom": "^18.3.7",
"@typescript-eslint/eslint-plugin": "^8.59.1",
"@typescript-eslint/parser": "^8.59.1",
"@vitejs/plugin-react-swc": "^3.10.2",
"eslint": "^9",
"eslint-config-next": "15.3.1",
Expand Down
1 change: 0 additions & 1 deletion src/app/(auth)/signup/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { FormError, FieldError } from '../../../components/forms/FormError';
import { SubmitButton } from '../../../components/forms/SubmitButton';
import { useMutation } from '../../../hooks/useMutation';
import { apiClient } from '@/lib/api';
import { parseApiError } from '@/utils/error-handler';

export default function SignupPage() {
const [showPassword, setShowPassword] = useState(false);
Expand Down
8 changes: 1 addition & 7 deletions src/app/api/admin/feature-flags/route.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import { NextRequest, NextResponse } from 'next/server';
import {
flagStore,
auditLog,
createAuditEntry,
generateId,
evaluateFlag,
} from '@/lib/feature-flags/store';
import { flagStore, createAuditEntry, generateId } from '@/lib/feature-flags/store';
import type { FeatureFlag, TargetingRule } from '@/lib/feature-flags/store';
import { withRateLimit } from '@/lib/ratelimit';
import { logAuditMutation } from '@/middleware/audit';
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/accessibility/AccessibilityTester.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import React, { useState } from 'react';
import { useAccessibilityCheck } from '@/hooks/useAccessibility';
import { AccessibilityIssue, getWCAGLevel } from '@/utils/accessibilityUtils';
import { getWCAGLevel } from '@/utils/accessibilityUtils';
import { AlertCircle, CheckCircle, AlertTriangle, Info, Download } from 'lucide-react';

interface AccessibilityTesterProps {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client';

import React, { useState } from 'react';
import { useScreenReaderAnnouncement, useFocusTrap } from '@/hooks/useAccessibility';
import { useScreenReaderAnnouncement } from '@/hooks/useAccessibility';
import { AccessibleError, AccessibleSuccess } from '../ScreenReaderOptimizer';

/**
Expand Down
1 change: 0 additions & 1 deletion src/app/components/notifications/MultiChannelDelivery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
AlertCircle,
Loader2,
Send,
Settings,
} from 'lucide-react';
import { useNotifications } from '@/app/hooks/useNotifications';
import {
Expand Down
1 change: 0 additions & 1 deletion src/app/components/notifications/NotificationCenter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
Trash2,
Filter,
Search,
Settings,
BarChart3,
X,
ChevronDown,
Expand Down
2 changes: 0 additions & 2 deletions src/app/components/notifications/NotificationTemplates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ import {
Copy,
Eye,
Search,
Filter,
ChevronDown,
ChevronUp,
Check,
X,
AlertCircle,
} from 'lucide-react';
Expand Down
2 changes: 0 additions & 2 deletions src/app/components/notifications/UserPreferences.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ import {
Save,
RotateCcw,
Check,
X,
AlertCircle,
Info,
} from 'lucide-react';
import { useNotifications } from '@/app/hooks/useNotifications';
import {
Expand Down
2 changes: 1 addition & 1 deletion src/app/mobile/components/OfflineContentManager.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useState, useEffect } from 'react';
import { Download, Check, X, Wifi, WifiOff, Trash2, AlertCircle, RefreshCw } from 'lucide-react';
import { Download, Check, Wifi, WifiOff, Trash2, AlertCircle, RefreshCw } from 'lucide-react';
import { apiService } from '../services/api';
import { offlineStorage } from '../services/offlineStorage';
import { Course, OfflineContent } from '../types/mobile';
Expand Down
1 change: 0 additions & 1 deletion src/app/mobile/components/TouchOptimizedControls.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { useState, useRef, useEffect } from 'react';
import { Play, Pause, SkipBack, SkipForward, Volume2, VolumeX, Maximize, X } from 'lucide-react';
import { offlineStorage } from '../services/offlineStorage';

interface TouchOptimizedControlsProps {
videoTitle: string;
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/admin/feature-flags/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';

import { useState, useCallback, useRef } from 'react';
import { useState, useCallback } from 'react';
import {
Flag,
Plus,
Expand Down
2 changes: 1 addition & 1 deletion src/app/store/messagingStore.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { DEFAULT_SOCKET_URL } from '@/constants/app.constants';
import { create } from 'zustand';
import io, { Socket } from 'socket.io-client';
import io from 'socket.io-client';

export interface Attachment {
id: string;
Expand Down
Loading
Loading