Skip to content

chore: Add Prisma extension to block deleteMany/updateMany with undefined 'in' #28324

chore: Add Prisma extension to block deleteMany/updateMany with undefined 'in'

chore: Add Prisma extension to block deleteMany/updateMany with undefined 'in' #28324

Triggered via pull request July 18, 2024 22:27
@keithwillcodekeithwillcode
synchronize #15721
Status Success
Total duration 10s
Artifacts

semantic-pull-requests.yml

on: pull_request_target
Validate PR title
2s
Validate PR title
Fit to window
Zoom out
Zoom in

Annotations

128 warnings
apps/web/lib/orgMigration.test.ts#L1001
[@calcom/eslint/no-prisma-include-true] Do not pass argument object with include: { AnyPropertyName: true } to prisma methods
apps/web/lib/orgMigration.test.ts#L1082
[@calcom/eslint/no-prisma-include-true] Do not pass argument object with include: { AnyPropertyName: true } to prisma methods
apps/web/playwright/profile.e2e.ts#L395
[playwright/no-conditional-in-test] Avoid having conditionals in tests
packages/app-store/_utils/getCrm.ts#L7
[@typescript-eslint/no-explicit-any] Unexpected any. Specify a different type.
apps/web/lib/orgMigration.test.ts#L1154
[@calcom/eslint/no-prisma-include-true] Do not pass argument object with include: { AnyPropertyName: true } to prisma methods
apps/web/playwright/signup.e2e.ts#L194
[@typescript-eslint/no-non-null-assertion] Forbidden non-null assertion.
packages/app-store/_utils/getCrm.ts#L7
[@typescript-eslint/no-explicit-any] Unexpected any. Specify a different type.
apps/web/lib/orgMigration.test.ts#L1265
[@calcom/eslint/no-prisma-include-true] Do not pass argument object with include: { AnyPropertyName: true } to prisma methods
apps/web/playwright/teams.e2e.ts#L22
[playwright/no-skipped-test] Unexpected use of the `.skip()` annotation.
packages/app-store/basecamp3/api/callback.ts#L90
[@typescript-eslint/no-unused-vars] 'state' is assigned a value but never used. Allowed unused vars must match /^_/u.
apps/web/lib/orgMigration.test.ts#L1304
[@calcom/eslint/no-prisma-include-true] Do not pass argument object with include: { AnyPropertyName: true } to prisma methods
apps/web/playwright/teams.e2e.ts#L153
[@typescript-eslint/no-non-null-assertion] Forbidden non-null assertion.
packages/app-store/googlecalendar/tests/google-calendar.e2e.ts#L25
[playwright/no-skipped-test] Unexpected use of the `.skip()` annotation.
apps/web/lib/orgMigration.test.ts#L1353
[@calcom/eslint/no-prisma-include-true] Do not pass argument object with include: { AnyPropertyName: true } to prisma methods
apps/web/playwright/teams.e2e.ts#L163
[@typescript-eslint/no-non-null-assertion] Forbidden non-null assertion.
packages/app-store/googlecalendar/tests/google-calendar.e2e.ts#L38
[playwright/no-skipped-test] Unexpected use of the `.skip()` annotation.
apps/web/playwright/teams.e2e.ts#L168
[playwright/no-skipped-test] Unexpected use of the `.skip()` annotation.
packages/app-store/googlecalendar/tests/google-calendar.e2e.ts#L41
[playwright/no-skipped-test] Unexpected use of the `.skip()` annotation.
apps/web/lib/orgMigration.ts#L261
[@calcom/eslint/no-prisma-include-true] Do not pass argument object with include: { AnyPropertyName: true } to prisma methods
packages/app-store/googlecalendar/tests/google-calendar.e2e.ts#L42
[playwright/no-skipped-test] Unexpected use of the `.skip()` annotation.
apps/web/playwright/teams.e2e.ts#L203
[playwright/no-skipped-test] Unexpected use of the `.skip()` annotation.
apps/web/lib/orgMigration.ts#L377
[@calcom/eslint/no-prisma-include-true] Do not pass argument object with include: { AnyPropertyName: true } to prisma methods
packages/app-store/googlecalendar/tests/google-calendar.e2e.ts#L60
[playwright/no-skipped-test] Unexpected use of the `.skip()` annotation.
apps/web/playwright/teams.e2e.ts#L206
[@typescript-eslint/no-non-null-assertion] Forbidden non-null assertion.
apps/web/lib/team/[slug]/[type]/getServerSideProps.tsx#L26
[@typescript-eslint/no-unused-vars] 'queryDuration' is assigned a value but never used. Allowed unused vars must match /^_/u.
packages/app-store/googlecalendar/tests/google-calendar.e2e.ts#L72
[playwright/no-skipped-test] Unexpected use of the `.skip()` annotation.
apps/web/playwright/webhook.e2e.ts#L422
[@calcom/eslint/no-prisma-include-true] Do not pass argument object with include: { AnyPropertyName: true } to prisma methods
apps/web/middleware.ts#L14
[@typescript-eslint/no-explicit-any] Unexpected any. Specify a different type.
packages/app-store/googlecalendar/tests/google-calendar.e2e.ts#L77
[playwright/no-skipped-test] Unexpected use of the `.skip()` annotation.
apps/web/test/lib/team-event-types.test.ts#L79
[@typescript-eslint/no-unused-vars] 'test' is assigned a value but never used. Allowed unused vars must match /^_/u.
apps/web/modules/event-types/views/event-types-single-view.tsx#L120
[@typescript-eslint/no-unused-vars] 'AssignmentWarningDialog' is assigned a value but never used. Allowed unused vars must match /^_/u.
packages/app-store/googlecalendar/tests/google-calendar.e2e.ts#L104
[playwright/no-skipped-test] Unexpected use of the `.skip()` annotation.
apps/web/test/utils/bookingScenario/bookingScenario.ts#L148
[@typescript-eslint/no-explicit-any] Unexpected any. Specify a different type.
apps/web/modules/event-types/views/event-types-single-view.tsx#L226
[@typescript-eslint/no-unused-vars] 'isOpenAssignmentWarnDialog' is assigned a value but never used. Allowed unused elements of array destructuring patterns must match /^_/u.
packages/app-store/googlecalendar/tests/testUtils.ts#L110
[@typescript-eslint/no-explicit-any] Unexpected any. Specify a different type.
apps/web/test/utils/bookingScenario/bookingScenario.ts#L220
[@typescript-eslint/no-explicit-any] Unexpected any. Specify a different type.
packages/app-store/hubspot/lib/CrmService.ts#L25
[@typescript-eslint/no-unused-vars] 'CustomPublicObjectInput' is defined but never used. Allowed unused vars must match /^_/u.
apps/web/modules/event-types/views/event-types-single-view.tsx#L226
[@typescript-eslint/no-unused-vars] 'setIsOpenAssignmentWarnDialog' is assigned a value but never used. Allowed unused elements of array destructuring patterns must match /^_/u.
apps/web/test/utils/bookingScenario/bookingScenario.ts#L229
[@calcom/eslint/no-prisma-include-true] Do not pass argument object with include: { AnyPropertyName: true } to prisma methods
packages/app-store/intercom/api/callback.ts#L89
[@typescript-eslint/no-unused-vars] 'state' is assigned a value but never used. Allowed unused vars must match /^_/u.
apps/web/test/utils/bookingScenario/bookingScenario.ts#L230
[@calcom/eslint/no-prisma-include-true] Do not pass argument object with include: { AnyPropertyName: true } to prisma methods
apps/web/modules/event-types/views/event-types-single-view.tsx#L227
[@typescript-eslint/no-unused-vars] 'pendingRoute' is assigned a value but never used. Allowed unused elements of array destructuring patterns must match /^_/u.
packages/app-store/jelly/lib/VideoApiAdapter.ts#L11
[@typescript-eslint/no-unused-vars] 'event' is defined but never used. Allowed unused args must match /^_/u.
apps/web/test/utils/bookingScenario/bookingScenario.ts#L231
[@calcom/eslint/no-prisma-include-true] Do not pass argument object with include: { AnyPropertyName: true } to prisma methods
apps/web/modules/event-types/views/event-types-single-view.tsx#L227
[@typescript-eslint/no-unused-vars] 'setPendingRoute' is assigned a value but never used. Allowed unused elements of array destructuring patterns must match /^_/u.
apps/web/test/utils/bookingScenario/bookingScenario.ts#L232
[@calcom/eslint/no-prisma-include-true] Do not pass argument object with include: { AnyPropertyName: true } to prisma methods
packages/app-store/jelly/lib/VideoApiAdapter.ts#L32
[@typescript-eslint/no-unused-vars] 'event' is defined but never used. Allowed unused args must match /^_/u.
apps/web/modules/event-types/views/event-types-single-view.tsx#L228
[@typescript-eslint/no-unused-vars] 'leaveWithoutAssigningHosts' is assigned a value but never used. Allowed unused vars must match /^_/u.
apps/web/test/utils/bookingScenario/bookingScenario.ts#L371
[@calcom/eslint/no-prisma-include-true] Do not pass argument object with include: { AnyPropertyName: true } to prisma methods
packages/app-store/jelly/lib/VideoApiAdapter.ts#L41
[@typescript-eslint/no-unused-vars] 'uid' is defined but never used. Allowed unused args must match /^_/u.
apps/web/modules/event-types/views/event-types-single-view.tsx#L271
[@typescript-eslint/no-unused-vars] 'router' is assigned a value but never used. Allowed unused vars must match /^_/u.
apps/web/test/utils/bookingScenario/bookingScenario.ts#L372
[@calcom/eslint/no-prisma-include-true] Do not pass argument object with include: { AnyPropertyName: true } to prisma methods
packages/app-store/jelly/lib/VideoApiAdapter.ts#L45
[@typescript-eslint/no-unused-vars] 'dateFrom' is defined but never used. Allowed unused args must match /^_/u.
apps/web/modules/videos/ai/ai-transcribe.tsx#L48
[@typescript-eslint/no-unused-vars] 't' is assigned a value but never used. Allowed unused vars must match /^_/u.
apps/web/test/utils/bookingScenario/bookingScenario.ts#L548
[@calcom/eslint/no-prisma-include-true] Do not pass argument object with include: { AnyPropertyName: true } to prisma methods
packages/app-store/jelly/lib/VideoApiAdapter.ts#L45
[@typescript-eslint/no-unused-vars] 'dateTo' is defined but never used. Allowed unused args must match /^_/u.
apps/web/modules/videos/ai/ai-transcribe.tsx#L66
[@typescript-eslint/no-unused-vars] 'ev' is defined but never used. Allowed unused args must match /^_/u.
apps/web/test/utils/bookingScenario/bookingScenario.ts#L549
[@calcom/eslint/no-prisma-include-true] Do not pass argument object with include: { AnyPropertyName: true } to prisma methods
packages/app-store/paypal/components/EventTypeAppSettingsInterface.tsx#L35
[@typescript-eslint/no-unused-vars] 'setRequirePayment' is assigned a value but never used. Allowed unused elements of array destructuring patterns must match /^_/u.
apps/web/modules/videos/ai/ai-transcribe.tsx#L73
[@typescript-eslint/no-unused-vars] 'ev' is defined but never used. Allowed unused args must match /^_/u.
apps/web/test/utils/bookingScenario/bookingScenario.ts#L550
[@calcom/eslint/no-prisma-include-true] Do not pass argument object with include: { AnyPropertyName: true } to prisma methods
packages/app-store/paypal/components/EventTypeAppSettingsInterface.tsx#L48
[react-hooks/exhaustive-deps] React Hook useEffect has missing dependencies: 'getAppData', 'requirePayment', and 'setAppData'. Either include them or remove the dependency array. If 'getAppData' changes too often, find the parent component that defines it and wrap that definition in useCallback.
apps/web/modules/videos/ai/ai-transcribe.tsx#L80
[@typescript-eslint/no-unused-vars] 'ev' is defined but never used. Allowed unused args must match /^_/u.
apps/web/test/utils/bookingScenario/bookingScenario.ts#L553
[@calcom/eslint/no-prisma-include-true] Do not pass argument object with include: { AnyPropertyName: true } to prisma methods
packages/app-store/routing-forms/components/getServerSidePropsSingleForm.ts#L92
[@typescript-eslint/no-unused-vars] 'u' is assigned a value but never used. Allowed unused vars must match /^_/u.
apps/web/modules/videos/ai/ai-transcribe.tsx#L87
[@typescript-eslint/no-unused-vars] 'ev' is defined but never used. Allowed unused args must match /^_/u.
apps/web/test/utils/bookingScenario/bookingScenario.ts#L556
[@calcom/eslint/no-prisma-include-true] Do not pass argument object with include: { AnyPropertyName: true } to prisma methods
packages/app-store/routing-forms/pages/route-builder/[...appPages].tsx#L149
[react-hooks/exhaustive-deps] React Hook useEffect has missing dependencies: 'eventOptions' and 'route'. Either include them or remove the dependency array. If 'setCustomEventTypeSlug' needs the current value of 'route', you can also switch to useReducer instead of useState and read 'route' in the reducer.
apps/web/pages/api/auth/two-factor/totp/disable.ts#L26
[@calcom/eslint/no-prisma-include-true] Do not pass argument object with include: { AnyPropertyName: true } to prisma methods
apps/web/test/utils/bookingScenario/bookingScenario.ts#L748
[@typescript-eslint/no-explicit-any] Unexpected any. Specify a different type.
packages/app-store/routing-forms/trpc/forms.handler.ts#L40
[@calcom/eslint/no-prisma-include-true] Do not pass argument object with include: { AnyPropertyName: true } to prisma methods
apps/web/pages/api/auth/two-factor/totp/setup.ts#L28
[@calcom/eslint/no-prisma-include-true] Do not pass argument object with include: { AnyPropertyName: true } to prisma methods
apps/web/test/utils/bookingScenario/bookingScenario.ts#L1624
[@typescript-eslint/no-unused-vars] 'app' is assigned a value but never used. Allowed unused vars must match /^_/u.
packages/app-store/salesforce/components/EventTypeAppCardInterface.tsx#L17
[@typescript-eslint/no-unused-vars] 'disabled' is assigned a value but never used. Allowed unused vars must match /^_/u.
apps/web/pages/settings/my-account/calendars.tsx#L12
[@typescript-eslint/no-unused-vars] 'SkeletonLoader' is assigned a value but never used. Allowed unused vars must match /^_/u.
apps/web/test/utils/bookingScenario/expects.ts#L174
[@typescript-eslint/no-non-null-assertion] Forbidden non-null assertion.
packages/app-store/salesforce/lib/CrmService.ts#L23
[@typescript-eslint/no-unused-vars] 'ContactSearchResult' is defined but never used. Allowed unused vars must match /^_/u.
apps/web/pages/settings/my-account/profile.tsx#L507
[@typescript-eslint/no-unused-vars] 'isFallbackImg' is defined but never used. Allowed unused args must match /^_/u.
packages/app-store/salesforce/lib/CrmService.ts#L40
[@typescript-eslint/no-explicit-any] Unexpected any. Specify a different type.
apps/web/test/utils/bookingScenario/expects.ts#L411
[@calcom/eslint/no-prisma-include-true] Do not pass argument object with include: { AnyPropertyName: true } to prisma methods
apps/web/pages/settings/my-account/profile.tsx#L509
[@typescript-eslint/no-unused-vars] 'userOrganization' is defined but never used. Allowed unused args must match /^_/u.
packages/app-store/stripepayment/components/EventTypeAppCardInterface.tsx#L25
[@typescript-eslint/no-unused-vars] 'setRequirePayment' is assigned a value but never used. Allowed unused elements of array destructuring patterns must match /^_/u.
apps/web/test/utils/bookingScenario/expects.ts#L794
[@typescript-eslint/no-unused-vars] 'organizer' is defined but never used. Allowed unused args must match /^_/u.
packages/app-store/zapier/api/subscriptions/listBookings.ts#L18
[@typescript-eslint/no-unused-vars] 'userInfo' is assigned a value but never used. Allowed unused vars must match /^_/u.
apps/web/pages/settings/organizations/new/index.tsx#L13
[@typescript-eslint/no-unused-vars] 'querySlug' is defined but never used. Allowed unused args must match /^_/u.
packages/app-store/zapier/api/subscriptions/listBookings.ts#L23
[@typescript-eslint/no-unused-vars] 'teamInfo' is assigned a value but never used. Allowed unused vars must match /^_/u.
apps/web/pages/settings/platform/oauth-clients/[clientId]/edit/index.tsx#L52
[@typescript-eslint/no-unused-vars] 'userPermissions' is assigned a value but never used. Allowed unused vars must match /^_/u.
packages/app-store/zohocalendar/lib/CalendarService.ts#L283
[@typescript-eslint/no-explicit-any] Unexpected any. Specify a different type.
apps/web/playwright/ab-tests-redirect.e2e.ts#L27
[playwright/no-conditional-in-test] Avoid having conditionals in tests
packages/app-store/zohocalendar/lib/CalendarService.ts#L284
[@typescript-eslint/no-explicit-any] Unexpected any. Specify a different type.
apps/web/playwright/ab-tests-redirect.e2e.ts#L43
[playwright/no-conditional-in-test] Avoid having conditionals in tests
packages/ui/components/dialog/Dialog.tsx#L214
[@typescript-eslint/no-unused-vars] 'DialogCloseProps' is defined but never used. Allowed unused vars must match /^_/u.
apps/web/playwright/ab-tests-redirect.e2e.ts#L59
[playwright/no-conditional-in-test] Avoid having conditionals in tests
packages/ui/components/form/datepicker/DatePicker.tsx#L17
[@typescript-eslint/no-unused-vars] 'minDate' is defined but never used. Allowed unused args must match /^_/u.
packages/ui/components/image-uploader/BannerUploader.tsx#L130
[react-hooks/exhaustive-deps] React Hook useEffect has missing dependencies: 'height', 't', and 'width'. Either include them or remove the dependency array.
apps/web/playwright/ab-tests-redirect.e2e.ts#L75
[playwright/no-conditional-in-test] Avoid having conditionals in tests
apps/web/app/WithAppDirSsg.tsx#L5
[@typescript-eslint/no-explicit-any] Unexpected any. Specify a different type.
apps/web/playwright/ab-tests-redirect.e2e.ts#L91
[playwright/no-conditional-in-test] Avoid having conditionals in tests
apps/web/app/WithAppDirSsr.tsx#L5
[@typescript-eslint/no-explicit-any] Unexpected any. Specify a different type.
apps/web/playwright/ab-tests-redirect.e2e.ts#L107
[playwright/no-conditional-in-test] Avoid having conditionals in tests
apps/web/app/WithEmbedSSR.tsx#L12
[@typescript-eslint/no-explicit-any] Unexpected any. Specify a different type.
apps/web/playwright/ab-tests-redirect.e2e.ts#L123
[playwright/no-conditional-in-test] Avoid having conditionals in tests
apps/web/app/future/apps/[slug]/[...pages]/page.tsx#L130
[@typescript-eslint/no-non-null-assertion] Forbidden non-null assertion.
apps/web/app/layoutHOC.tsx#L9
[@typescript-eslint/no-explicit-any] Unexpected any. Specify a different type.
apps/web/playwright/app-store.e2e.ts#L13
[playwright/no-skipped-test] Unexpected use of the `.skip()` annotation.
apps/web/app/layoutHOC.tsx#L16
[@typescript-eslint/no-explicit-any] Unexpected any. Specify a different type.
apps/web/playwright/fixtures/bookings.ts#L94
[@calcom/eslint/no-prisma-include-true] Do not pass argument object with include: { AnyPropertyName: true } to prisma methods
apps/web/components/apps/AppPage.tsx#L169
[react-hooks/exhaustive-deps] React Hook useEffect has missing dependencies: 'mutation', 'searchParams', 'slug', 'type', and 'variant'. Either include them or remove the dependency array.
apps/web/playwright/fixtures/bookings.ts#L94
[@calcom/eslint/no-prisma-include-true] Do not pass argument object with include: { AnyPropertyName: true } to prisma methods
apps/web/components/eventtype/AIEventController.tsx#L100
[@typescript-eslint/no-unused-vars] 'err' is defined but never used. Allowed unused args must match /^_/u.
apps/web/playwright/fixtures/users.ts#L605
[@calcom/eslint/no-prisma-include-true] Do not pass argument object with include: { AnyPropertyName: true } to prisma methods
apps/web/components/eventtype/EventAvailabilityTab.tsx#L229
[react-hooks/exhaustive-deps] React Hook useEffect has missing dependencies: 'eventType.schedule', 'eventType.scheduleName', 'getValues', 'isChildrenManagedEventType', 'isManagedEventType', 'setValue', 't', and 'watchSchedule'. Either include them or remove the dependency array.
apps/web/playwright/fixtures/users.ts#L627
[@calcom/eslint/no-prisma-include-true] Do not pass argument object with include: { AnyPropertyName: true } to prisma methods
apps/web/components/eventtype/EventTeamTab.tsx#L283
[@typescript-eslint/no-unused-vars] 't' is assigned a value but never used. Allowed unused vars must match /^_/u.
apps/web/playwright/fixtures/users.ts#L657
[@calcom/eslint/no-prisma-include-true] Do not pass argument object with include: { AnyPropertyName: true } to prisma methods
apps/web/components/eventtype/EventTypeSingleLayout.tsx#L287
[react-hooks/exhaustive-deps] React Hook useMemo has missing dependencies: 'eventType.id' and 'formMethods'. Either include them or remove the dependency array.
apps/web/components/eventtype/EventTypeSingleLayout.tsx#L299
[react-hooks/exhaustive-deps] React Hook useMemo has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked.
apps/web/playwright/fixtures/users.ts#L658
[@calcom/eslint/no-prisma-include-true] Do not pass argument object with include: { AnyPropertyName: true } to prisma methods
apps/web/components/settings/SecondaryEmailModal.tsx#L49
[react-hooks/exhaustive-deps] React Hook useEffect has missing dependencies: 'clearErrorMessage' and 'formMethods'. Either include them or remove the dependency array. If 'clearErrorMessage' changes too often, find the parent component that defines it and wrap that definition in useCallback.
apps/web/playwright/organization/booking.e2e.ts#L412
[playwright/no-conditional-in-test] Avoid having conditionals in tests
apps/web/components/settings/platform/oauth-clients/oauth-client-form/index.tsx#L44
[@typescript-eslint/no-unused-vars] 't' is assigned a value but never used. Allowed unused vars must match /^_/u.
apps/web/lib/apps/[slug]/getStaticProps.tsx#L13
[@typescript-eslint/no-unused-vars] 'md' is assigned a value but never used. Allowed unused vars must match /^_/u.
apps/web/playwright/out-of-office.e2e.ts#L14
[playwright/no-skipped-test] Unexpected use of the `.skip()` annotation.
apps/web/playwright/out-of-office.e2e.ts#L33
[playwright/no-skipped-test] Unexpected use of the `.skip()` annotation.
apps/web/playwright/payment-apps.e2e.ts#L235
[playwright/no-conditional-in-test] Avoid having conditionals in tests
apps/web/playwright/payment-apps.e2e.ts#L281
[playwright/no-conditional-in-test] Avoid having conditionals in tests
apps/web/playwright/payment.e2e.ts#L17
[playwright/no-skipped-test] Unexpected use of the `.skip()` annotation.
apps/web/playwright/payment.e2e.ts#L18
[playwright/no-skipped-test] Unexpected use of the `.skip()` annotation.