pvarki / rasenmaeher-ui

0 stars 1 forks source link

ESLint fails, npm run build fails #3

Closed rambo closed 1 year ago

rambo commented 1 year ago

I would guess the build fails on the same issues that ESLint does.

build

➜  /app npm run build

> pvarki-tak-ui@0.0.0 build
> tsc && vite build

src/Router.tsx:15:10 - error TS6133: 'Root' is declared but its value is never read.

15 function Root() {
            ~~~~

src/Router.tsx:24:10 - error TS6133: 'Team' is declared but its value is never read.

24 function Team() {
            ~~~~

src/components/ToastService/AlertDialogRoot.tsx:3:10 - error TS2305: Module '"./toastStore"' has no exported member 'useAlertDialogStore'.

3 import { useAlertDialogStore } from "./toastStore";
           ~~~~~~~~~~~~~~~~~~~

src/components/ToastService/toastStore.ts:2:1 - error TS6133: 'ButtonColors' is declared but its value is never read.

2 import { ButtonColors } from "../Button";
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/components/ToastService/toastStore.ts:17:58 - error TS2741: Property 'openToast' is missing in type '{ open: false; props: undefined; openDialog: (props: ToastStoreProps) => void; closeDialog: () => void; }' but required in type 'ToastStore'.

 17 export const useToastStore = create<ToastStore>((set) => ({
                                                             ~~
 18   open: false,
    ~~~~~~~~~~~~~~
... 
 22   closeDialog: () => set({ open: false, props: undefined }),
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 23 }));
    ~~

  src/components/ToastService/toastStore.ts:13:3
    13   openToast: (props: ToastStoreProps) => void;
         ~~~~~~~~~
    'openToast' is declared here.

src/components/ToastService/toastStore.ts:26:17 - error TS2339: Property 'openDialog' does not exist on type 'ToastStore'.

26   const { open, openDialog, closeDialog } = useToastStore();
                   ~~~~~~~~~~

src/components/ToastService/toastStore.ts:28:9 - error TS6133: 'eventDateRef' is declared but its value is never read.

28   const eventDateRef = React.useRef(new Date());
           ~~~~~~~~~~~~

src/components/ToastService/toastStore.ts:28:24 - error TS2686: 'React' refers to a UMD global, but the current file is a module. Consider adding an import instead.

28   const eventDateRef = React.useRef(new Date());
                          ~~~~~

src/components/ToastService/toastStore.ts:29:20 - error TS2686: 'React' refers to a UMD global, but the current file is a module. Consider adding an import instead.

29   const timerRef = React.useRef(0);
                      ~~~~~

src/components/ToastService/toastStore.ts:31:3 - error TS2686: 'React' refers to a UMD global, but the current file is a module. Consider adding an import instead.

31   React.useEffect(() => {
     ~~~~~

src/hook/api/inviteCode/useCreateInviteCode.ts:3:3 - error TS6133: 'UseQueryOptions' is declared but its value is never read.

3   UseQueryOptions,
    ~~~~~~~~~~~~~~~

src/hook/api/inviteCode/useCreateInviteCode.ts:5:3 - error TS6133: 'useQuery' is declared but its value is never read.

5   useQuery,
    ~~~~~~~~

src/hook/api/useApproveUser.ts:3:3 - error TS6133: 'UseQueryOptions' is declared but its value is never read.

3   UseQueryOptions,
    ~~~~~~~~~~~~~~~

src/hook/api/useApproveUser.ts:5:3 - error TS6133: 'useQuery' is declared but its value is never read.

5   useQuery,
    ~~~~~~~~

src/hook/api/useGetCertificate.ts:3:3 - error TS6133: 'UseQueryOptions' is declared but its value is never read.

3   UseQueryOptions,
    ~~~~~~~~~~~~~~~

src/hook/api/useGetCertificate.ts:5:3 - error TS6133: 'useQuery' is declared but its value is never read.

5   useQuery,
    ~~~~~~~~

src/hook/api/useTestCertificate.ts:3:3 - error TS6133: 'UseQueryOptions' is declared but its value is never read.

3   UseQueryOptions,
    ~~~~~~~~~~~~~~~

src/hook/api/useTestCertificate.ts:5:3 - error TS6133: 'useQuery' is declared but its value is never read.

5   useQuery,
    ~~~~~~~~

src/store/AuthContext.ts:1:1 - error TS2304: Cannot find name 's'.

1 s;
  ~

src/views/LoginView copy.tsx:1:10 - error TS6133: 'useEffect' is declared but its value is never read.

1 import { useEffect, useMemo, useState } from "react";
           ~~~~~~~~~

src/views/LoginView copy.tsx:2:1 - error TS6192: All imports in import declaration are unused.

2 import { useMutation, useQuery, UseMutationOptions } from "react-query";
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/views/LoginView copy.tsx:3:23 - error TS6133: 'useNavigate' is declared but its value is never read.

3 import { useLocation, useNavigate, useParams } from "react-router-dom";
                        ~~~~~~~~~~~

src/views/LoginView copy.tsx:3:36 - error TS6133: 'useParams' is declared but its value is never read.

3 import { useLocation, useNavigate, useParams } from "react-router-dom";
                                     ~~~~~~~~~

src/views/LoginView copy.tsx:4:10 - error TS2305: Module '"../components/Header"' has no exported member 'Navbar'.

4 import { Navbar } from "../components/Header";
           ~~~~~~

src/views/LoginView copy.tsx:8:1 - error TS6133: 'AlertDialog' is declared but its value is never read.

8 import * as AlertDialog from "@radix-ui/react-alert-dialog";
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/views/LoginView copy.tsx:14:10 - error TS6133: 'useLocalToken' is declared but its value is never read.

14 function useLocalToken() {
            ~~~~~~~~~~~~~

src/views/LoginView copy.tsx:128:39 - error TS2345: Argument of type 'string' is not assignable to parameter of type '{ callsign: string; code: string; }'.

128           onClick={() => loginAsAdmin(callsign)}
                                          ~~~~~~~~

src/views/UserInviteView.tsx:1:1 - error TS6133: 'React' is declared but its value is never read.

1 import React from "react";
  ~~~~~~~~~~~~~~~~~~~~~~~~~~

src/views/UserInviteView.tsx:25:7 - error TS6133: 'TabsDemo' is declared but its value is never read.

25 const TabsDemo = () => (
         ~~~~~~~~

src/views/UserManagementView.tsx:5:1 - error TS6133: 'useEnrollmentList' is declared but its value is never read.

5 import { useEnrollmentList } from "../hook/api/useEnrollmentList";
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/views/UserManagementView.tsx:6:1 - error TS6133: 'useEnrolledUsers' is declared but its value is never read.

6 import { useEnrolledUsers } from "../hook/api/useEnrolledUsers";
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/views/UserManagementView.tsx:16:9 - error TS6133: 'adminList' is declared but its value is never read.

16   const adminList = useMemo(
           ~~~~~~~~~

src/views/UserManagementView.tsx:20:9 - error TS6133: 'userListWithoutAdmins' is declared but its value is never read.

20   const userListWithoutAdmins = useMemo(
           ~~~~~~~~~~~~~~~~~~~~~

src/views/UserManagementView.tsx:122:7 - error TS6133: 'AccordionDemo' is declared but its value is never read.

122 const AccordionDemo = () => (
          ~~~~~~~~~~~~~

src/views/UserManagementView.tsx:129:6 - error TS2322: Type '{ children: Element[]; value: string; }' is not assignable to type 'IntrinsicAttributes & RefAttributes<unknown>'.
  Property 'children' does not exist on type 'IntrinsicAttributes & RefAttributes<unknown>'.

129     <AccordionItem value="item-1">
         ~~~~~~~~~~~~~

src/views/UserManagementView.tsx:130:8 - error TS2559: Type '{ children: string; }' has no properties in common with type 'IntrinsicAttributes & RefAttributes<unknown>'.

130       <AccordionTrigger>Is it accessible?</AccordionTrigger>
           ~~~~~~~~~~~~~~~~

src/views/UserManagementView.tsx:131:8 - error TS2559: Type '{ children: string; }' has no properties in common with type 'IntrinsicAttributes & RefAttributes<unknown>'.

131       <AccordionContent>
           ~~~~~~~~~~~~~~~~

src/views/UserManagementView.tsx:136:6 - error TS2322: Type '{ children: Element[]; value: string; }' is not assignable to type 'IntrinsicAttributes & RefAttributes<unknown>'.
  Property 'children' does not exist on type 'IntrinsicAttributes & RefAttributes<unknown>'.

136     <AccordionItem value="item-2">
         ~~~~~~~~~~~~~

src/views/UserManagementView.tsx:137:8 - error TS2559: Type '{ children: string; }' has no properties in common with type 'IntrinsicAttributes & RefAttributes<unknown>'.

137       <AccordionTrigger>Is it unstyled?</AccordionTrigger>
           ~~~~~~~~~~~~~~~~

src/views/UserManagementView.tsx:138:8 - error TS2559: Type '{ children: string; }' has no properties in common with type 'IntrinsicAttributes & RefAttributes<unknown>'.

138       <AccordionContent>
           ~~~~~~~~~~~~~~~~

src/views/UserManagementView.tsx:144:6 - error TS2322: Type '{ children: Element[]; value: string; }' is not assignable to type 'IntrinsicAttributes & RefAttributes<unknown>'.
  Property 'children' does not exist on type 'IntrinsicAttributes & RefAttributes<unknown>'.

144     <AccordionItem value="item-3">
         ~~~~~~~~~~~~~

src/views/UserManagementView.tsx:145:8 - error TS2559: Type '{ children: string; }' has no properties in common with type 'IntrinsicAttributes & RefAttributes<unknown>'.

145       <AccordionTrigger>Can it be animated?</AccordionTrigger>
           ~~~~~~~~~~~~~~~~

src/views/UserManagementView.tsx:146:8 - error TS2559: Type '{ children: string; }' has no properties in common with type 'IntrinsicAttributes & RefAttributes<unknown>'.

146       <AccordionContent>
           ~~~~~~~~~~~~~~~~

src/views/UserManagementView.tsx:154:6 - error TS2339: Property 'children' does not exist on type '{}'.

154   ({ children, className, ...props }, forwardedRef) => (
         ~~~~~~~~

src/views/UserManagementView.tsx:154:16 - error TS2339: Property 'className' does not exist on type '{}'.

154   ({ children, className, ...props }, forwardedRef) => (
                   ~~~~~~~~~

src/views/UserManagementView.tsx:161:7 - error TS2322: Type 'ForwardedRef<unknown>' is not assignable to type 'Ref<HTMLDivElement> | undefined'.
  Type 'MutableRefObject<unknown>' is not assignable to type 'Ref<HTMLDivElement> | undefined'.
    Type 'MutableRefObject<unknown>' is not assignable to type 'RefObject<HTMLDivElement>'.
      Types of property 'current' are incompatible.
        Type 'unknown' is not assignable to type 'HTMLDivElement | null'.

161       ref={forwardedRef}
          ~~~

  node_modules/@types/react/index.d.ts:146:9
    146         ref?: Ref<T> | undefined;
                ~~~
    The expected type comes from property 'ref' which is declared here on type 'IntrinsicAttributes & AccordionItemProps & RefAttributes<HTMLDivElement>'

src/views/UserManagementView.tsx:169:6 - error TS2339: Property 'children' does not exist on type '{}'.

169   ({ children, className, ...props }, forwardedRef) => (
         ~~~~~~~~

src/views/UserManagementView.tsx:169:16 - error TS2339: Property 'className' does not exist on type '{}'.

169   ({ children, className, ...props }, forwardedRef) => (
                   ~~~~~~~~~

src/views/UserManagementView.tsx:177:9 - error TS2322: Type 'ForwardedRef<unknown>' is not assignable to type 'Ref<HTMLButtonElement> | undefined'.
  Type 'MutableRefObject<unknown>' is not assignable to type 'Ref<HTMLButtonElement> | undefined'.
    Type 'MutableRefObject<unknown>' is not assignable to type 'RefObject<HTMLButtonElement>'.
      Types of property 'current' are incompatible.
        Type 'unknown' is not assignable to type 'HTMLButtonElement | null'.

177         ref={forwardedRef}
            ~~~

  node_modules/@types/react/index.d.ts:146:9
    146         ref?: Ref<T> | undefined;
                ~~~
    The expected type comes from property 'ref' which is declared here on type 'IntrinsicAttributes & AccordionTriggerProps & RefAttributes<HTMLButtonElement>'

src/views/UserManagementView.tsx:190:6 - error TS2339: Property 'children' does not exist on type '{}'.

190   ({ children, className, ...props }, forwardedRef) => (
         ~~~~~~~~

src/views/UserManagementView.tsx:190:16 - error TS2339: Property 'className' does not exist on type '{}'.

190   ({ children, className, ...props }, forwardedRef) => (
                   ~~~~~~~~~

src/views/UserManagementView.tsx:197:7 - error TS2322: Type 'ForwardedRef<unknown>' is not assignable to type 'Ref<HTMLDivElement> | undefined'.

197       ref={forwardedRef}
          ~~~

  node_modules/@types/react/index.d.ts:146:9
    146         ref?: Ref<T> | undefined;
                ~~~
    The expected type comes from property 'ref' which is declared here on type 'IntrinsicAttributes & AccordionContentProps & RefAttributes<HTMLDivElement>'

src/views/users/invite/EnrollApprovalView.tsx:1:1 - error TS6133: 'QRCode' is declared but its value is never read.

1 import QRCode from "react-qr-code";
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/views/users/invite/EnrollApprovalView.tsx:5:10 - error TS6133: 'useLocation' is declared but its value is never read.

5 import { useLocation, useParams } from "react-router-dom";
           ~~~~~~~~~~~

src/views/users/invite/EnrollApprovalView.tsx:11:9 - error TS6133: 'inviteUrl' is declared but its value is never read.

11   const inviteUrl =
           ~~~~~~~~~

src/views/users/invite/EnrollCodeListView.tsx:1:1 - error TS6133: 'QRCode' is declared but its value is never read.

1 import QRCode from "react-qr-code";
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/views/users/invite/EnrollCodeListView.tsx:5:1 - error TS6192: All imports in import declaration are unused.

5 import React, { ReactNode } from "react";
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/views/users/invite/EnrollCodeListView.tsx:8:3 - error TS6133: 'HamburgerMenuIcon' is declared but its value is never read.

8   HamburgerMenuIcon,
    ~~~~~~~~~~~~~~~~~

src/views/users/invite/EnrollCodeListView.tsx:9:3 - error TS6133: 'DotFilledIcon' is declared but its value is never read.

9   DotFilledIcon,
    ~~~~~~~~~~~~~

src/views/users/invite/EnrollCodeListView.tsx:10:3 - error TS6133: 'ChevronRightIcon' is declared but its value is never read.

10   ChevronRightIcon,
     ~~~~~~~~~~~~~~~~

src/views/users/invite/EnrollCodeListView.tsx:12:3 - error TS6133: 'CheckIcon' is declared but its value is never read.

12   CheckIcon,
     ~~~~~~~~~

src/views/users/invite/EnrollCodeListView.tsx:13:3 - error TS6133: 'TrashIcon' is declared but its value is never read.

13   TrashIcon,
     ~~~~~~~~~

src/views/users/invite/EnrollCodeListView.tsx:15:3 - error TS6133: 'CropIcon' is declared but its value is never read.

15   CropIcon,
     ~~~~~~~~

src/views/users/invite/EnrollCodeListView.tsx:16:3 - error TS6133: 'Cross1Icon' is declared but its value is never read.

16   Cross1Icon,
     ~~~~~~~~~~

src/views/users/invite/EnrollCodeListView.tsx:18:1 - error TS6133: 'Checkbox' is declared but its value is never read.

18 import * as Checkbox from "@radix-ui/react-checkbox";
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/views/users/invite/EnrollCodeListView.tsx:21:3 - error TS6133: 'InviteCodeItem' is declared but its value is never read.

21   InviteCodeItem,
     ~~~~~~~~~~~~~~

src/views/users/invite/QrCodeView.tsx:5:10 - error TS6133: 'useLocation' is declared but its value is never read.

5 import { useLocation, useParams } from "react-router-dom";
           ~~~~~~~~~~~

Found 67 errors in 14 files.

Errors  Files
     2  src/Router.tsx:15
     1  src/components/ToastService/AlertDialogRoot.tsx:3
     7  src/components/ToastService/toastStore.ts:2
     2  src/hook/api/inviteCode/useCreateInviteCode.ts:3
     2  src/hook/api/useApproveUser.ts:3
     2  src/hook/api/useGetCertificate.ts:3
     2  src/hook/api/useTestCertificate.ts:3
     1  src/store/AuthContext.ts:1
     8  src/views/LoginView copy.tsx:1
     2  src/views/UserInviteView.tsx:1
    23  src/views/UserManagementView.tsx:5
     3  src/views/users/invite/EnrollApprovalView.tsx:1
    11  src/views/users/invite/EnrollCodeListView.tsx:1
     1  src/views/users/invite/QrCodeView.tsx:5
➜  /app       

ESLint

(rasenmaeher-ui) ➜  ui git:(integration) ✗ pre-commit run --all-files
don't commit to branch.......................................................Passed
check python ast.........................................(no files to check)Skipped
check toml...............................................(no files to check)Skipped
trim trailing whitespace.....................................................Passed
fix end of files.............................................................Passed
check yaml...................................................................Passed
check for added large files..................................................Passed
check for case conflicts.....................................................Passed
check json...................................................................Passed
check for merge conflicts....................................................Passed
check for broken symlinks................................(no files to check)Skipped
CRLF end-lines checker.......................................................Passed
CRLF end-lines remover.......................................................Passed
No-tabs checker..............................................................Passed
Tabs remover.................................................................Passed
Check .rst files with the same linter used by pypi.org.......................Passed
Detect secrets...............................................................Passed
prettier.....................................................................Passed
eslint.......................................................................Failed
- hook id: eslint
- exit code: 1

/Users/rambo/devel/docker-rasenmaeher-integration/ui/src/hook/api/useGetCertificate.ts
  3:3  warning  'UseQueryOptions' is defined but never used  @typescript-eslint/no-unused-vars
  5:3  warning  'useQuery' is defined but never used         @typescript-eslint/no-unused-vars

/Users/rambo/devel/docker-rasenmaeher-integration/ui/vite.config.ts
  0:0  error  Parsing error: ESLint was configured to run on `<tsconfigRootDir>/vite.config.ts` using `parserOptions.project`: /users/rambo/devel/docker-rasenmaeher-integration/ui/tsconfig.json
However, that TSConfig does not include this file. Either:
- Change ESLint's list of included files to not include this file
- Change that TSConfig to include this file
- Create a new TSConfig that includes this file and include it in your parserOptions.project
See the typescript-eslint docs for more info: https://typescript-eslint.io/linting/troubleshooting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file

✖ 3 problems (1 error, 2 warnings)

/Users/rambo/devel/docker-rasenmaeher-integration/ui/src/views/EnrollView.tsx
  1:10  warning  Fast refresh only works when a file has exports. Move your component(s) to a separate file  react-refresh/only-export-components
  1:10  warning  'EnrollView' is defined but never used                                                      @typescript-eslint/no-unused-vars
  1:23  error    Unexpected empty function 'EnrollView'                                                      @typescript-eslint/no-empty-function

✖ 3 problems (1 error, 2 warnings)

/Users/rambo/devel/docker-rasenmaeher-integration/ui/src/hook/api/inviteCode/useCreateInviteCode.ts
  3:3  warning  'UseQueryOptions' is defined but never used  @typescript-eslint/no-unused-vars
  5:3  warning  'useQuery' is defined but never used         @typescript-eslint/no-unused-vars

✖ 2 problems (0 errors, 2 warnings)

/Users/rambo/devel/docker-rasenmaeher-integration/ui/src/views/UserManagementView.tsx
    5:10  warning  'useEnrollmentList' is defined but never used                                  @typescript-eslint/no-unused-vars
    6:10  warning  'useEnrolledUsers' is defined but never used                                   @typescript-eslint/no-unused-vars
   16:9   warning  'adminList' is assigned a value but never used                                 @typescript-eslint/no-unused-vars
   20:9   warning  'userListWithoutAdmins' is assigned a value but never used                     @typescript-eslint/no-unused-vars
  122:7   warning  'AccordionDemo' is assigned a value but never used                             @typescript-eslint/no-unused-vars
  158:9   error    Unsafe argument of type `any` assigned to a parameter of type `ArgumentArray`  @typescript-eslint/no-unsafe-argument
  174:11  error    Unsafe argument of type `any` assigned to a parameter of type `ArgumentArray`  @typescript-eslint/no-unsafe-argument
  194:9   error    Unsafe argument of type `any` assigned to a parameter of type `ArgumentArray`  @typescript-eslint/no-unsafe-argument

/Users/rambo/devel/docker-rasenmaeher-integration/ui/src/views/users/invite/EnrollCodeListView.tsx
   1:8   warning  'QRCode' is defined but never used             @typescript-eslint/no-unused-vars
   5:17  warning  'ReactNode' is defined but never used          @typescript-eslint/no-unused-vars
   8:3   warning  'HamburgerMenuIcon' is defined but never used  @typescript-eslint/no-unused-vars
   9:3   warning  'DotFilledIcon' is defined but never used      @typescript-eslint/no-unused-vars
  10:3   warning  'ChevronRightIcon' is defined but never used   @typescript-eslint/no-unused-vars
  12:3   warning  'CheckIcon' is defined but never used          @typescript-eslint/no-unused-vars
  13:3   warning  'TrashIcon' is defined but never used          @typescript-eslint/no-unused-vars
  15:3   warning  'CropIcon' is defined but never used           @typescript-eslint/no-unused-vars
  16:3   warning  'Cross1Icon' is defined but never used         @typescript-eslint/no-unused-vars
  18:13  warning  'Checkbox' is defined but never used           @typescript-eslint/no-unused-vars
  21:3   warning  'InviteCodeItem' is defined but never used     @typescript-eslint/no-unused-vars

✖ 19 problems (3 errors, 16 warnings)

/Users/rambo/devel/docker-rasenmaeher-integration/ui/src/views/login/EnrollmentView.tsx
  17:6  warning  React Hook useEffect has missing dependencies: 'callsign' and 'navigate'. Either include them or remove the dependency array  react-hooks/exhaustive-deps

✖ 1 problem (0 errors, 1 warning)

/Users/rambo/devel/docker-rasenmaeher-integration/ui/src/Router.tsx
  15:10  warning  'Root' is defined but never used  @typescript-eslint/no-unused-vars
  24:10  warning  'Team' is defined but never used  @typescript-eslint/no-unused-vars

/Users/rambo/devel/docker-rasenmaeher-integration/ui/src/hook/api/useApproveUser.ts
  3:3  warning  'UseQueryOptions' is defined but never used  @typescript-eslint/no-unused-vars
  5:3  warning  'useQuery' is defined but never used         @typescript-eslint/no-unused-vars

✖ 4 problems (0 errors, 4 warnings)

/Users/rambo/devel/docker-rasenmaeher-integration/ui/src/views/users/invite/EnrollApprovalView.tsx
   1:8   warning  'QRCode' is defined but never used              @typescript-eslint/no-unused-vars
   5:10  warning  'useLocation' is defined but never used         @typescript-eslint/no-unused-vars
  11:9   warning  'inviteUrl' is assigned a value but never used  @typescript-eslint/no-unused-vars

✖ 3 problems (0 errors, 3 warnings)

/Users/rambo/devel/docker-rasenmaeher-integration/ui/src/views/UserInviteView.tsx
  25:7  warning  'TabsDemo' is assigned a value but never used  @typescript-eslint/no-unused-vars

/Users/rambo/devel/docker-rasenmaeher-integration/ui/src/views/users/invite/QrCodeView.tsx
  5:10  warning  'useLocation' is defined but never used  @typescript-eslint/no-unused-vars

✖ 2 problems (0 errors, 2 warnings)

/Users/rambo/devel/docker-rasenmaeher-integration/ui/src/components/ToastService/toastStore.ts
   2:10  warning  'ButtonColors' is defined but never used                                                                                                                                                                                                                         @typescript-eslint/no-unused-vars
  28:9   warning  'eventDateRef' is assigned a value but never used                                                                                                                                                                                                                @typescript-eslint/no-unused-vars
  32:40  warning  The ref value 'timerRef.current' will likely have changed by the time this effect cleanup function runs. If this ref points to a node rendered by React, copy 'timerRef.current' to a variable inside the effect, and use that variable in the cleanup function  react-hooks/exhaustive-deps
  37:5   error    Unsafe assignment of an `any` value                                                                                                                                                                                                                              @typescript-eslint/no-unsafe-assignment

✖ 4 problems (1 error, 3 warnings)

/Users/rambo/devel/docker-rasenmaeher-integration/ui/src/components/ToastService/AlertDialogRoot.tsx
   6:9   error  Unsafe assignment of an `any` value                   @typescript-eslint/no-unsafe-assignment
   6:40  error  Unsafe call of an `any` typed value                   @typescript-eslint/no-unsafe-call
   9:29  error  Unsafe assignment of an `any` value                   @typescript-eslint/no-unsafe-assignment
   9:49  error  Unsafe assignment of an `any` value                   @typescript-eslint/no-unsafe-assignment
  14:14  error  Unsafe member access .title on an `any` value         @typescript-eslint/no-unsafe-member-access
  17:14  error  Unsafe member access .description on an `any` value   @typescript-eslint/no-unsafe-member-access
  21:64  error  Unsafe assignment of an `any` value                   @typescript-eslint/no-unsafe-assignment
  21:64  error  Unsafe member access .onCancel on an `any` value      @typescript-eslint/no-unsafe-member-access
  22:18  error  Unsafe member access .cancelLabel on an `any` value   @typescript-eslint/no-unsafe-member-access
  27:28  error  Unsafe assignment of an `any` value                   @typescript-eslint/no-unsafe-assignment
  27:35  error  Unsafe member access .confirmColor on an `any` value  @typescript-eslint/no-unsafe-member-access
  28:26  error  Unsafe assignment of an `any` value                   @typescript-eslint/no-unsafe-assignment
  28:26  error  Unsafe member access .onConfirm on an `any` value     @typescript-eslint/no-unsafe-member-access
  30:18  error  Unsafe member access .confirmLabel on an `any` value  @typescript-eslint/no-unsafe-member-access

/Users/rambo/devel/docker-rasenmaeher-integration/ui/src/views/LoginView copy.tsx
   1:10  warning  'useEffect' is defined but never used           @typescript-eslint/no-unused-vars
   2:10  warning  'useMutation' is defined but never used         @typescript-eslint/no-unused-vars
   2:23  warning  'useQuery' is defined but never used            @typescript-eslint/no-unused-vars
   2:33  warning  'UseMutationOptions' is defined but never used  @typescript-eslint/no-unused-vars
   3:23  warning  'useNavigate' is defined but never used         @typescript-eslint/no-unused-vars
   3:36  warning  'useParams' is defined but never used           @typescript-eslint/no-unused-vars
   8:13  warning  'AlertDialog' is defined but never used         @typescript-eslint/no-unused-vars
  14:10  warning  'useLocalToken' is defined but never used       @typescript-eslint/no-unused-vars

✖ 22 problems (14 errors, 8 warnings)

/Users/rambo/devel/docker-rasenmaeher-integration/ui/src/hook/api/useTestCertificate.ts
  3:3  warning  'UseQueryOptions' is defined but never used  @typescript-eslint/no-unused-vars
  5:3  warning  'useQuery' is defined but never used         @typescript-eslint/no-unused-vars

✖ 2 problems (0 errors, 2 warnings)

(rasenmaeher-ui) ➜  ui git:(integration) ✗ 
rambo commented 1 year ago

Fixed a while ago