(BSR)[PRO] cleanup after eslint update #7639
Annotations
10 errors and 11 warnings
Run yarn lint:js:
pro/src/app/App/hook/useLogExtraProData.ts#L25
React Hook useEffect has missing dependencies: 'location.pathname', 'logEvent', and 'previousOfferer'. Either include them or remove the dependency array
|
Run yarn lint:js:
pro/src/app/App/hook/useLogNavigation.ts#L32
React Hook useEffect has missing dependencies: 'params' and 'previousPage'. Either include them or remove the dependency array
|
Run yarn lint:js:
pro/src/app/App/hook/usePageTitle.ts#L16
React Hook useEffect has a missing dependency: 'location'. Either include it or remove the dependency array
|
Run yarn lint:js:
pro/src/commons/hooks/useGetBitmap.ts#L21
React Hook useEffect has a missing dependency: 'file'. Either include it or remove the dependency array
|
Run yarn lint:js:
pro/src/commons/hooks/useIsElementVisible.ts#L18
The 'observer' object construction makes the dependencies of useEffect Hook (at line 32) change on every render. Move it inside the useEffect callback. Alternatively, wrap the initialization of 'observer' in its own useMemo() Hook
|
Run yarn lint:js:
pro/src/commons/hooks/useNotification.ts#L50
React Hook useMemo has a missing dependency: 'notify'. Either include it or remove the dependency array
|
Run yarn lint:js:
pro/src/commons/hooks/useRedirectLoggedUser.ts#L53
React Hook useEffect has missing dependencies: 'dispatch', 'navigate', and 'redirectToUrl'. Either include them or remove the dependency array
|
Run yarn lint:js:
pro/src/components/Address/Address.tsx#L43
React Hook useEffect has a missing dependency: 'selectedField.value'. Either include it or remove the dependency array
|
Run yarn lint:js:
pro/src/components/Address/Address.tsx#L85
React Hook useEffect has missing dependencies: 'addressesMap', 'searchField', and 'setFieldValue'. Either include them or remove the dependency array
|
Run yarn lint:js:
pro/src/components/Bookings/Bookings.tsx#L188
React Hook useEffect has missing dependencies: 'initialAppliedFilters.bookingBeginningDate', 'initialAppliedFilters.bookingEndingDate', 'initialAppliedFilters.bookingStatusFilter', and 'initialAppliedFilters.offerEventDate'. Either include them or remove the dependency array
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Run yarn lint:js:
pro/src/commons/utils/sortCollectiveOffers.ts#L19
Switch is not exhaustive. Cases not matched: null
|
Run yarn lint:js:
pro/src/commons/utils/timezone.ts#L56
Switch is not exhaustive. Cases not matched: undefined | null
|
Run yarn lint:js:
pro/src/components/Bookings/BookingsRecapTable/BookingsTable/CollectiveActionButtons.tsx#L21
There should be at least one empty line between import groups
|
Run yarn lint:js:
pro/src/components/Bookings/BookingsRecapTable/BookingsTable/CollectiveActionButtons.tsx#L22
`commons/hooks/useActiveFeature` import should occur before import of `commons/hooks/useNotification`
|
Run yarn lint:js:
pro/src/components/Bookings/BookingsRecapTable/BookingsTable/CollectiveActionButtons.tsx#L23
`commons/utils/isActionAllowedOnCollectiveOffer` import should occur before import of `components/CancelCollectiveBookingModal/CancelCollectiveBookingModal`
|
Run yarn lint:js:
pro/src/components/Bookings/BookingsRecapTable/BookingsTable/CollectiveBookingsTable.tsx#L38
Switch is not exhaustive. Cases not matched: null | CollectiveBookingsSortingColumn.BENEFICIARY_NAME | CollectiveBookingsSortingColumn.BOOKING_DATE
|
Run yarn lint:js:
pro/src/components/Bookings/BookingsRecapTable/BookingsTable/CollectiveTimeLine.tsx#L35
Switch is not exhaustive. Cases not matched: CollectiveBookingCancellationReasons.FRAUD | CollectiveBookingCancellationReasons.FRAUD_SUSPICION | CollectiveBookingCancellationReasons.FRAUD_INAPPROPRIATE | CollectiveBookingCancellationReasons.PUBLIC_API | CollectiveBookingCancellationReasons.FINANCE_INCIDENT | CollectiveBookingCancellationReasons.BACKOFFICE | CollectiveBookingCancellationReasons.BACKOFFICE_EVENT_CANCELLED | CollectiveBookingCancellationReasons.BACKOFFICE_OFFER_MODIFIED | CollectiveBookingCancellationReasons.BACKOFFICE_OFFER_WITH_WRONG_INFORMATION | CollectiveBookingCancellationReasons.BACKOFFICE_OFFERER_BUSINESS_CLOSED | CollectiveBookingCancellationReasons.OFFERER_CONNECT_AS
|
Run yarn lint:js:
pro/src/components/Bookings/BookingsRecapTable/BookingsTable/IndividualBookingsTable.tsx#L42
Switch is not exhaustive. Cases not matched: null
|
Run yarn lint:js:
pro/src/components/Callout/Callout.tsx#L41
Switch is not exhaustive. Cases not matched: CalloutVariant.DEFAULT | CalloutVariant.INFO
|
Run yarn lint:js:
pro/src/components/IndividualOffer/utils/getSuccessMessage.ts#L5
Switch is not exhaustive. Cases not matched: OFFER_WIZARD_MODE.READ_ONLY
|
Loading