> pan-african-express@0.1.0 lint > eslint C:\Users\HP\Documents\PANA\PAN AFRICA\PAN\src\app\(main)\about\page.tsx 49:21 warning Using `` could result in slower LCP and higher bandwidth. Consider using `` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element @next/next/no-img-element 53:29 error `"` can be escaped with `"`, `“`, `"`, `”` react/no-unescaped-entities 53:64 error `"` can be escaped with `"`, `“`, `"`, `”` react/no-unescaped-entities 112:27 error `'` can be escaped with `'`, `‘`, `'`, `’` react/no-unescaped-entities C:\Users\HP\Documents\PANA\PAN AFRICA\PAN\src\app\(main)\account\page.tsx 7:56 warning 'User' is defined but never used @typescript-eslint/no-unused-vars 48:48 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 70:8 warning React Hook useEffect has a missing dependency: 'router'. Either include it or remove the dependency array react-hooks/exhaustive-deps C:\Users\HP\Documents\PANA\PAN AFRICA\PAN\src\app\(main)\book\page.tsx 33:11 warning 'nav' is assigned a value but never used @typescript-eslint/no-unused-vars 159:75 error `'` can be escaped with `'`, `‘`, `'`, `’` react/no-unescaped-entities C:\Users\HP\Documents\PANA\PAN AFRICA\PAN\src\app\(main)\contact\page.tsx 55:31 error `'` can be escaped with `'`, `‘`, `'`, `’` react/no-unescaped-entities 59:40 error `'` can be escaped with `'`, `‘`, `'`, `’` react/no-unescaped-entities 154:129 error `'` can be escaped with `'`, `‘`, `'`, `’` react/no-unescaped-entities C:\Users\HP\Documents\PANA\PAN AFRICA\PAN\src\app\(main)\page.tsx 105:15 warning Using `` could result in slower LCP and higher bandwidth. Consider using `` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element @next/next/no-img-element 165:145 error `"` can be escaped with `"`, `“`, `"`, `”` react/no-unescaped-entities C:\Users\HP\Documents\PANA\PAN AFRICA\PAN\src\app\(main)\pricing\page.tsx 5:67 warning 'Package' is defined but never used @typescript-eslint/no-unused-vars C:\Users\HP\Documents\PANA\PAN AFRICA\PAN\src\app\(main)\services\page.tsx 4:17 warning 'Globe' is defined but never used @typescript-eslint/no-unused-vars 5:8 warning 'ServiceCard' is defined but never used @typescript-eslint/no-unused-vars 61:110 error `'` can be escaped with `'`, `‘`, `'`, `’` react/no-unescaped-entities 99:33 warning Using `` could result in slower LCP and higher bandwidth. Consider using `` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element @next/next/no-img-element C:\Users\HP\Documents\PANA\PAN AFRICA\PAN\src\app\(main)\tracking\page.tsx 6:36 warning 'Clock' is defined but never used @typescript-eslint/no-unused-vars 216:171 error `'` can be escaped with `'`, `‘`, `'`, `’` react/no-unescaped-entities C:\Users\HP\Documents\PANA\PAN AFRICA\PAN\src\app\actions\admin.ts 121:5 warning Unused eslint-disable directive (no problems were reported from '@typescript-eslint/no-explicit-any') 135:22 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 136:22 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 137:22 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 138:22 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 139:22 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 140:22 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 141:22 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 142:22 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 143:22 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 144:22 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 145:22 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 152:38 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 182:42 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 195:5 warning Unused eslint-disable directive (no problems were reported from '@typescript-eslint/no-explicit-any') 202:22 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 203:22 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 204:22 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 205:22 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 208:67 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 221:30 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 234:48 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 238:51 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 248:24 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any C:\Users\HP\Documents\PANA\PAN AFRICA\PAN\src\app\actions\bookings.ts 39:71 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 115:10 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 132:54 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 170:111 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any C:\Users\HP\Documents\PANA\PAN AFRICA\PAN\src\app\actions\dashboard.ts 98:28 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 111:49 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 111:128 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 112:49 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 112:127 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 113:50 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 113:163 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 115:60 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 168:28 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 212:50 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any C:\Users\HP\Documents\PANA\PAN AFRICA\PAN\src\app\actions\developer.ts 34:66 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 39:10 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 80:66 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 85:10 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any C:\Users\HP\Documents\PANA\PAN AFRICA\PAN\src\app\actions\rider.ts 58:5 warning Unused eslint-disable directive (no problems were reported from '@typescript-eslint/no-explicit-any') 60:22 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 67:22 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 83:21 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 89:34 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 91:49 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 105:5 warning 'location' is defined but never used @typescript-eslint/no-unused-vars C:\Users\HP\Documents\PANA\PAN AFRICA\PAN\src\app\admin\contacts\page.tsx 6:20 warning 'Clock' is defined but never used @typescript-eslint/no-unused-vars 6:27 warning 'Filter' is defined but never used @typescript-eslint/no-unused-vars 7:5 warning 'ArrowRight' is defined but never used @typescript-eslint/no-unused-vars 7:17 warning 'XCircle' is defined but never used @typescript-eslint/no-unused-vars 7:26 warning 'MoreVertical' is defined but never used @typescript-eslint/no-unused-vars 7:40 warning 'ExternalLink' is defined but never used @typescript-eslint/no-unused-vars 15:38 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 18:46 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 22:45 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 27:23 error Error: Calling setState synchronously within an effect can trigger cascading renders Effects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following: * Update external systems with the latest state from React. * Subscribe for updates from some external system, calling setState in a callback function when external state changes. Calling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect). C:\Users\HP\Documents\PANA\PAN AFRICA\PAN\src\app\admin\contacts\page.tsx:27:23 25 | }; 26 | > 27 | useEffect(() => { load(); }, []); | ^^^^ Avoid calling setState() directly within an effect 28 | 29 | const filtered = rows.filter(r => 30 | !search || r.full_name?.toLowerCase().includes(search.toLowerCase()) || react-hooks/set-state-in-effect 36:28 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any C:\Users\HP\Documents\PANA\PAN AFRICA\PAN\src\app\admin\fleet\page.tsx 7:18 warning 'Filter' is defined but never used @typescript-eslint/no-unused-vars 8:5 warning 'AlertCircle' is defined but never used @typescript-eslint/no-unused-vars 8:18 warning 'ChevronRight' is defined but never used @typescript-eslint/no-unused-vars 8:35 warning 'User' is defined but never used @typescript-eslint/no-unused-vars 17:22 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 25:42 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 26:40 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 27:62 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 31:62 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 48:23 error Error: Calling setState synchronously within an effect can trigger cascading renders Effects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following: * Update external systems with the latest state from React. * Subscribe for updates from some external system, calling setState in a callback function when external state changes. Calling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect). C:\Users\HP\Documents\PANA\PAN AFRICA\PAN\src\app\admin\fleet\page.tsx:48:23 46 | }; 47 | > 48 | useEffect(() => { loadData(); }, []); | ^^^^^^^^ Avoid calling setState() directly within an effect 49 | 50 | const handleAssign = async () => { 51 | if (!dispatchShipment || !selectedRider) return; react-hooks/set-state-in-effect C:\Users\HP\Documents\PANA\PAN AFRICA\PAN\src\app\admin\layout.tsx 37:58 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 56:23 error Error: Calling setState synchronously within an effect can trigger cascading renders Effects are intended to synchronize state between React and external systems such as manually updating the DOM, state management libraries, or other platform APIs. In general, the body of an effect should do one or both of the following: * Update external systems with the latest state from React. * Subscribe for updates from some external system, calling setState in a callback function when external state changes. Calling setState synchronously within an effect body causes cascading renders that can hurt performance, and is not recommended. (https://react.dev/learn/you-might-not-need-an-effect). C:\Users\HP\Documents\PANA\PAN AFRICA\PAN\src\app\admin\layout.tsx:56:23 54 | 55 | // Close mobile menu on route change > 56 | useEffect(() => { setOpen(false); }, [pathname]); | ^^^^^^^ Avoid calling setState() directly within an effect 57 | 58 | const isActive = (href: string) => 59 | href === "/admin" ? pathname === "/admin" : pathname.startsWith(href); react-hooks/set-state-in-effect 132:18 error Error: Cannot create components during render Components created during render will reset their state each time they are created. Declare components outside of render. C:\Users\HP\Documents\PANA\PAN AFRICA\PAN\src\app\admin\layout.tsx:132:18 130 | 131 | > 132 | | ^^^^^^^^ This component is created during render 133 | 134 | 135 | {/* ΓöÇΓöÇ Mobile Top Bar ΓöÇΓöÇ */} C:\Users\HP\Documents\PANA\PAN AFRICA\PAN\src\app\admin\layout.tsx:61:22 59 | href === "/admin" ? pathname === "/admin" : pathname.startsWith(href); 60 | > 61 | const NavLinks = () => ( | ^^^^^^^ > 62 | <> | ^^^^^^^^^^ > 63 |