|
| 1 | +src/app/tenant-dashboard/page.tsx:119:39 lint/suspicious/noExplicitAny ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
| 2 | + |
| 3 | + × Unexpected any. Specify a different type. |
| 4 | + |
| 5 | + 117 │ }, []); |
| 6 | + 118 │ |
| 7 | + > 119 │ const handleViewDetails = (booking: any): void => { |
| 8 | + │ ^^^ |
| 9 | + 120 │ // Legacy mapping or handle directly |
| 10 | + 121 │ const found = apiBookings.find((b) => b.id === booking.id); |
| 11 | + |
| 12 | + i any disables many type checking rules. Its use should be avoided. |
| 13 | + |
| 14 | + |
| 15 | +src/app/tenant-dashboard/page.tsx:128:41 lint/suspicious/noExplicitAny ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
| 16 | + |
| 17 | + × Unexpected any. Specify a different type. |
| 18 | + |
| 19 | + 126 │ }; |
| 20 | + 127 │ |
| 21 | + > 128 │ const handleCancelBooking = (booking: any): void => { |
| 22 | + │ ^^^ |
| 23 | + 129 │ const found = apiBookings.find((b) => b.id === booking.id); |
| 24 | + 130 │ if (found) { |
| 25 | + |
| 26 | + i any disables many type checking rules. Its use should be avoided. |
| 27 | + |
| 28 | + |
| 29 | +src/app/tenant-dashboard/page.tsx:359:29 lint/suspicious/noExplicitAny ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
| 30 | + |
| 31 | + × Unexpected any. Specify a different type. |
| 32 | + |
| 33 | + 357 │ ) : user ? ( |
| 34 | + 358 │ <ProfileManagement |
| 35 | + > 359 │ user={user as any} |
| 36 | + │ ^^^ |
| 37 | + 360 │ onUpdateProfile={handleUpdateUser as any} |
| 38 | + 361 │ onUploadAvatar={async (file) => { |
| 39 | + |
| 40 | + i any disables many type checking rules. Its use should be avoided. |
| 41 | + |
| 42 | + |
| 43 | +src/app/tenant-dashboard/page.tsx:360:52 lint/suspicious/noExplicitAny ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
| 44 | + |
| 45 | + × Unexpected any. Specify a different type. |
| 46 | + |
| 47 | + 358 │ <ProfileManagement |
| 48 | + 359 │ user={user as any} |
| 49 | + > 360 │ onUpdateProfile={handleUpdateUser as any} |
| 50 | + │ ^^^ |
| 51 | + 361 │ onUploadAvatar={async (file) => { |
| 52 | + 362 │ await apiUploadAvatar(user.id.toString(), file); |
| 53 | + |
| 54 | + i any disables many type checking rules. Its use should be avoided. |
| 55 | + |
| 56 | + |
| 57 | +src/app/tenant-dashboard/page.tsx:396:45 lint/suspicious/noExplicitAny ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
| 58 | + |
| 59 | + × Unexpected any. Specify a different type. |
| 60 | + |
| 61 | + 394 │ walletBalance={walletBalance} |
| 62 | + 395 │ pendingTransactions={pendingTransactions} |
| 63 | + > 396 │ transactions={transactions as any} |
| 64 | + │ ^^^ |
| 65 | + 397 │ onExportTransactions={apiExportTransactions} |
| 66 | + 398 │ /> |
| 67 | + |
| 68 | + i any disables many type checking rules. Its use should be avoided. |
| 69 | + |
| 70 | + |
| 71 | +src/app/tenant-dashboard/page.tsx format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
| 72 | + |
| 73 | + × Formatter would have printed the following content: |
| 74 | + |
| 75 | + 207 207 │ <div className="fixed top-4 right-4 z-50 max-w-sm"> |
| 76 | + 208 208 │ <div |
| 77 | + 209 │ - ··········className={`rounded-lg·p-4·shadow-lg·${toast.type·===·'success' |
| 78 | + 210 │ - ············?·'bg-green-100·border·border-green-200·text-green-800' |
| 79 | + 211 │ - ············:·'bg-red-100·border·border-red-200·text-red-800' |
| 80 | + 212 │ - ············}`} |
| 81 | + 209 │ + ··········className={`rounded-lg·p-4·shadow-lg·${ |
| 82 | + 210 │ + ············toast.type·===·'success' |
| 83 | + 211 │ + ··············?·'bg-green-100·border·border-green-200·text-green-800' |
| 84 | + 212 │ + ··············:·'bg-red-100·border·border-red-200·text-red-800' |
| 85 | + 213 │ + ··········}`} |
| 86 | + 213 214 │ > |
| 87 | + 214 215 │ <div className="flex items-center"> |
| 88 | + ······· │ |
| 89 | + 316 317 │ type="button" |
| 90 | + 317 318 │ onClick={() => setActiveTab(tab.id)} |
| 91 | + 318 │ - ··················className={`flex·items-center·space-x-2·py-4·px-1·border-b-2·font-medium·text-sm·${activeTab·===·tab.id |
| 92 | + 319 │ - ····················?·'border-blue-500·text-blue-600·dark:text-blue-400' |
| 93 | + 320 │ - ····················:·'border-transparent·text-gray-500·dark:text-white·hover:border-gray-300' |
| 94 | + 321 │ - ····················}`} |
| 95 | + 319 │ + ··················className={`flex·items-center·space-x-2·py-4·px-1·border-b-2·font-medium·text-sm·${ |
| 96 | + 320 │ + ····················activeTab·===·tab.id |
| 97 | + 321 │ + ······················?·'border-blue-500·text-blue-600·dark:text-blue-400' |
| 98 | + 322 │ + ······················:·'border-transparent·text-gray-500·dark:text-white·hover:border-gray-300' |
| 99 | + 323 │ + ··················}`} |
| 100 | + 322 324 │ > |
| 101 | + 323 325 │ <Icon className="w-5 h-5" /> |
| 102 | + |
| 103 | + |
| 104 | +Checked 1 file in 7ms. No fixes applied. |
| 105 | +Found 6 errors. |
| 106 | +check ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ |
| 107 | + |
| 108 | + × Some errors were emitted while running checks. |
| 109 | + |
| 110 | + |
0 commit comments