From ef9b4c041559aec1a6dd2ced21db4f3968655083 Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Sun, 31 Dec 2023 12:07:42 +0100 Subject: [PATCH 1/9] Fix lint errors --- examples/basic-dom/Scene.tsx | 2 +- examples/basic-dom/index.tsx | 2 +- .../_components/EditWorkspaceDialog.tsx | 4 ++-- .../_components/InviteGuestsDialog.tsx | 6 +++--- .../_components/InviteTeamMembersPrompt.tsx | 2 +- .../_components/NewWorkspaceDialog.tsx | 4 ++-- .../_components/NotificationsPopover.tsx | 16 ++++++++-------- .../app/(protected)/_components/TeamMembers.tsx | 4 ++-- .../(protected)/team/[id]/components/Team.tsx | 2 +- packages/core/src/index.ts | 2 +- packages/playground/src/shared/camera/index.tsx | 4 ++-- .../shared/custom-editable-components/index.tsx | 4 ++-- .../src/shared/custom-raf-driver/index.tsx | 4 ++-- .../playground/src/shared/dom-basic/index.tsx | 2 +- packages/playground/src/shared/dom/index.tsx | 2 +- packages/playground/src/shared/file/index.tsx | 2 +- .../hello-world-extension-dataverse/index.tsx | 4 ++-- .../index.tsx | 4 ++-- .../src/shared/hello-world-extension/index.tsx | 4 ++-- packages/playground/src/shared/image/index.tsx | 2 +- .../playground/src/shared/instances/index.tsx | 4 ++-- .../src/shared/notifications/index.tsx | 2 +- .../playground/src/shared/r3f-rocket/index.tsx | 4 ++-- packages/playground/src/shared/remote/index.tsx | 2 +- packages/playground/src/shared/sync/index.tsx | 2 +- .../playground/src/shared/three-basic/index.tsx | 2 +- .../src/shared/turtle/TurtleRenderer.tsx | 2 +- .../tests/hot-reload-extension-pane/index.tsx | 2 +- .../tests/hot-reload-extension-toolbar/index.tsx | 2 +- .../src/tests/r3f-dynamic-tree/index.tsx | 4 ++-- .../src/tests/r3f-stress-test/index.tsx | 4 ++-- .../src/tests/reading-obj-value/index.tsx | 3 ++- .../src/tests/setting-static-props/index.tsx | 2 +- packages/theatric/src/index.ts | 4 ++-- 34 files changed, 58 insertions(+), 57 deletions(-) diff --git a/examples/basic-dom/Scene.tsx b/examples/basic-dom/Scene.tsx index 140c363e7..4bfc16323 100644 --- a/examples/basic-dom/Scene.tsx +++ b/examples/basic-dom/Scene.tsx @@ -5,7 +5,7 @@ import type {UseDragOpts} from './useDrag' import useDrag from './useDrag' import theatre from '@theatre/core' -theatre.init({studio: true}) +void theatre.init({studio: true}) const boxObjectConfig = { x: 0, diff --git a/examples/basic-dom/index.tsx b/examples/basic-dom/index.tsx index 5173bf150..1decf7670 100644 --- a/examples/basic-dom/index.tsx +++ b/examples/basic-dom/index.tsx @@ -3,7 +3,7 @@ import ReactDOM from 'react-dom/client' import theatre, {getProject} from '@theatre/core' import {Scene} from './Scene' -theatre.init({studio: true}) +void theatre.init({studio: true}) ReactDOM.createRoot(document.getElementById('root')!).render( , diff --git a/packages/app/src/app/(protected)/_components/EditWorkspaceDialog.tsx b/packages/app/src/app/(protected)/_components/EditWorkspaceDialog.tsx index 9fd6108db..523b84b29 100644 --- a/packages/app/src/app/(protected)/_components/EditWorkspaceDialog.tsx +++ b/packages/app/src/app/(protected)/_components/EditWorkspaceDialog.tsx @@ -66,8 +66,8 @@ export default function EditWorkspaceDialog({ name: values.name, description: values.description, }) - queryUtils.teams.invalidate() - queryUtils.workspaces.invalidate() + void queryUtils.teams.invalidate() + void queryUtils.workspaces.invalidate() } catch (error) { toast({ variant: 'destructive', diff --git a/packages/app/src/app/(protected)/_components/InviteGuestsDialog.tsx b/packages/app/src/app/(protected)/_components/InviteGuestsDialog.tsx index 00b990116..8af40defb 100644 --- a/packages/app/src/app/(protected)/_components/InviteGuestsDialog.tsx +++ b/packages/app/src/app/(protected)/_components/InviteGuestsDialog.tsx @@ -64,7 +64,7 @@ export default function InviteGuestsDialog({ id: workspaceId, invites: [{email: values.email, accessLevel: values.accessLevel}], }) - queryUtils.workspaces.invalidate() + void queryUtils.workspaces.invalidate() } catch (error) { toast({ variant: 'destructive', @@ -157,7 +157,7 @@ function Guests({workspaceId}: {workspaceId: string}) { async function handleRemoveGuest(email: string) { await removeGuest({id: workspaceId, email}) - queryUtils.workspaces.getGuests.invalidate() + void queryUtils.workspaces.getGuests.invalidate() } async function handleChangeAccessLevel( @@ -165,7 +165,7 @@ function Guests({workspaceId}: {workspaceId: string}) { accessLevel: 'READ' | 'READ_WRITE', ) { await changeAccessLevel({id: workspaceId, email, accessLevel}) - queryUtils.workspaces.getGuests.invalidate() + void queryUtils.workspaces.getGuests.invalidate() } return ( diff --git a/packages/app/src/app/(protected)/_components/InviteTeamMembersPrompt.tsx b/packages/app/src/app/(protected)/_components/InviteTeamMembersPrompt.tsx index 6eaea93bd..e80f2e7be 100644 --- a/packages/app/src/app/(protected)/_components/InviteTeamMembersPrompt.tsx +++ b/packages/app/src/app/(protected)/_components/InviteTeamMembersPrompt.tsx @@ -53,7 +53,7 @@ const InviteTeamMembersPrompt: FC<{id: string}> = ({id}) => { id, invites: [{email: values.email, role: values.role}], }) - queryUtils.teams.invalidate() + void queryUtils.teams.invalidate() } catch (error) { toast({ variant: 'destructive', diff --git a/packages/app/src/app/(protected)/_components/NewWorkspaceDialog.tsx b/packages/app/src/app/(protected)/_components/NewWorkspaceDialog.tsx index 8fcb021a9..6a0c5d24e 100644 --- a/packages/app/src/app/(protected)/_components/NewWorkspaceDialog.tsx +++ b/packages/app/src/app/(protected)/_components/NewWorkspaceDialog.tsx @@ -56,8 +56,8 @@ export default function NewWorkspaceDialog({teamId}: {teamId: string}) { description: values.description, teamId, }) - queryUtils.teams.invalidate() - queryUtils.workspaces.invalidate() + void queryUtils.teams.invalidate() + void queryUtils.workspaces.invalidate() } catch (error) { toast({ variant: 'destructive', diff --git a/packages/app/src/app/(protected)/_components/NotificationsPopover.tsx b/packages/app/src/app/(protected)/_components/NotificationsPopover.tsx index 8e5cce2a6..dfed7c7c2 100644 --- a/packages/app/src/app/(protected)/_components/NotificationsPopover.tsx +++ b/packages/app/src/app/(protected)/_components/NotificationsPopover.tsx @@ -57,8 +57,8 @@ const Invitations = () => {