Files
trustlab/lint_log_2.txt

85 lines
8.1 KiB
Plaintext

> trustlab-web@1.0.0 lint
> eslint .
D:\Lab\HomeLab\Github\dyzulk\trustlab\trustlab-web\src\app\(public)\auth\set-password\SetPasswordClient.tsx
137:21 warning Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` 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
D:\Lab\HomeLab\Github\dyzulk\trustlab\trustlab-web\src\app\(public)\forgot-password\ForgotPasswordClient.tsx
92:21 warning Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` 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
D:\Lab\HomeLab\Github\dyzulk\trustlab\trustlab-web\src\app\(public)\reset-password\ResetPasswordClient.tsx
120:13 warning Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` 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
D:\Lab\HomeLab\Github\dyzulk\trustlab\trustlab-web\src\app\(public)\signin\SigninClient.tsx
261:21 warning Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` 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
D:\Lab\HomeLab\Github\dyzulk\trustlab\trustlab-web\src\app\(public)\signup\SignupClient.tsx
232:21 warning Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` 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
D:\Lab\HomeLab\Github\dyzulk\trustlab\trustlab-web\src\app\dashboard\admin\inquiries\InquiryClient.tsx
76:9 warning The 'inquiries' logical expression could make the dependencies of useMemo Hook (at line 87) change on every render. Move it inside the useMemo callback. Alternatively, wrap the initialization of 'inquiries' in its own useMemo() Hook react-hooks/exhaustive-deps
256:19 error `"` can be escaped with `&quot;`, `&ldquo;`, `&#34;`, `&rdquo;` react/no-unescaped-entities
256:45 error `"` can be escaped with `&quot;`, `&ldquo;`, `&#34;`, `&rdquo;` react/no-unescaped-entities
D:\Lab\HomeLab\Github\dyzulk\trustlab\trustlab-web\src\app\dashboard\admin\legal\AdminLegalEditorClient.tsx
82:6 warning React Hook useEffect has a missing dependency: 'formData.parent_minor'. Either include it or remove the dependency array react-hooks/exhaustive-deps
D:\Lab\HomeLab\Github\dyzulk\trustlab\trustlab-web\src\app\dashboard\admin\smtp-tester\page.tsx
44:6 warning React Hook useEffect has a missing dependency: 'fetchConfigs'. Either include it or remove the dependency array react-hooks/exhaustive-deps
D:\Lab\HomeLab\Github\dyzulk\trustlab\trustlab-web\src\app\dashboard\admin\users\UsersManagementClient.tsx
86:9 warning The 'users' logical expression could make the dependencies of useMemo Hook (at line 97) change on every render. Move it inside the useMemo callback. Alternatively, wrap the initialization of 'users' in its own useMemo() Hook react-hooks/exhaustive-deps
D:\Lab\HomeLab\Github\dyzulk\trustlab\trustlab-web\src\app\dashboard\notifications\NotificationsClient.tsx
64:6 warning React Hook useEffect has a missing dependency: 'fetchNotifications'. Either include it or remove the dependency array react-hooks/exhaustive-deps
83:6 warning React Hook useEffect has a missing dependency: 'fetchNotifications'. Either include it or remove the dependency array react-hooks/exhaustive-deps
D:\Lab\HomeLab\Github\dyzulk\trustlab\trustlab-web\src\app\dashboard\settings\SettingsClient.tsx
458:29 warning Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` 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
D:\Lab\HomeLab\Github\dyzulk\trustlab\trustlab-web\src\components\Layouts\Public\Navbar.tsx
45:29 warning Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` 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
56:25 error Do not use an `<a>` element to navigate to `/`. Use `<Link />` from `next/link` instead. See: https://nextjs.org/docs/messages/no-html-link-for-pages @next/next/no-html-link-for-pages
176:25 error Do not use an `<a>` element to navigate to `/`. Use `<Link />` from `next/link` instead. See: https://nextjs.org/docs/messages/no-html-link-for-pages @next/next/no-html-link-for-pages
D:\Lab\HomeLab\Github\dyzulk\trustlab\trustlab-web\src\components\certificates\CertificateTable.tsx
50:32 error Compilation Skipped: Existing memoization could not be preserved
React Compiler has skipped optimizing this component because the existing manual memoization could not be preserved. This value was memoized in source but not in compilation output.
D:\Lab\HomeLab\Github\dyzulk\trustlab\trustlab-web\src\components\certificates\CertificateTable.tsx:50:32
48 |
49 | // Filtering logic
> 50 | const filteredCertificates = useMemo(() => {
| ^^^^^^^^^^^^^^^
> 51 | return certificates.filter((cert) => {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 52 | const search = searchTerm.toLowerCase();
…
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 76 | });
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 77 | }, [certificates, searchTerm, statusFilter, issuanceFilter]);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Could not preserve existing memoization
78 |
79 | const getIntermediateName = (bits: number) => {
80 | return bits === 4096 ? "Intermediate 4096" : "Intermediate 2048"; react-hooks/preserve-manual-memoization
D:\Lab\HomeLab\Github\dyzulk\trustlab\trustlab-web\src\components\common\ConfirmationModal.tsx
93:80 error `"` can be escaped with `&quot;`, `&ldquo;`, `&#34;`, `&rdquo;` react/no-unescaped-entities
93:96 error `"` can be escaped with `&quot;`, `&ldquo;`, `&#34;`, `&rdquo;` react/no-unescaped-entities
D:\Lab\HomeLab\Github\dyzulk\trustlab\trustlab-web\src\components\common\ImageCropper.tsx
93:6 warning React Hook useCallback has a missing dependency: 'getCroppedImg'. Either include it or remove the dependency array react-hooks/exhaustive-deps
D:\Lab\HomeLab\Github\dyzulk\trustlab\trustlab-web\src\components\providers\I18nProvider.tsx
37:8 warning React Hook useEffect has a missing dependency: 'locale'. Either include it or remove the dependency array react-hooks/exhaustive-deps
D:\Lab\HomeLab\Github\dyzulk\trustlab\trustlab-web\src\hooks\useAuth.ts
115:8 warning React Hook useEffect has a missing dependency: 'logout'. Either include it or remove the dependency array react-hooks/exhaustive-deps
Γ£û 23 problems (7 errors, 16 warnings)