Skip to content

Commit fcdf7a4

Browse files
committed
Activate eslint no-unused-vars
Enable the eslint rule no-unused-vars
1 parent 69f1796 commit fcdf7a4

16 files changed

+10
-20
lines changed

eslint.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export default [
1717
"@typescript-eslint/no-explicit-any": "off",
1818
"@typescript-eslint/no-floating-promises": "off",
1919
"@typescript-eslint/no-misused-promises": "off",
20-
"@typescript-eslint/no-unused-vars": "off",
2120
"@typescript-eslint/require-await": "off",
2221
},
2322
},

src/components/events/partials/EventsDateCell.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import { useTranslation } from "react-i18next";
2-
import { editFilterValue } from "../../../slices/tableFilterSlice";
3-
import React from "react";
41
import { loadEventsIntoTable } from "../../../thunks/tableThunks";
52
import { fetchEvents } from "../../../slices/eventSlice";
63
import { Event } from "../../../slices/eventSlice";

src/components/events/partials/ModalTabsAndPages/EditScheduledEventsEditPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ const EditScheduledEventsEditPage = <T extends RequiredFormProps>({
158158
{!loading && (
159159
<FieldArray
160160
name="editedEvents"
161-
render={arrayHelpers => (
161+
render={_arrayHelpers => (
162162
<>
163163
{hasAccess(
164164
"ROLE_UI_EVENTS_DETAILS_METADATA_EDIT",

src/components/events/partials/ModalTabsAndPages/EventDetailsCommentsTab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useState, useEffect } from "react";
1+
import { useState, useEffect } from "react";
22
import {
33
getComments,
44
getCommentReasons,

src/components/events/partials/ModalTabsAndPages/EventDetailsWorkflowDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import ButtonLikeAnchor from "../../../shared/ButtonLikeAnchor";
2626
import { ParseKeys } from "i18next";
2727
import ModalContentTable from "../../../shared/modals/ModalContentTable";
2828
import EventDetailsWorkflowErrors from "./EventDetailsWorkflowErrors";
29-
import { Operation, WorfklowOperationsTableBody } from "./EventDetailsWorkflowOperations";
29+
import { WorfklowOperationsTableBody } from "./EventDetailsWorkflowOperations";
3030

3131
/**
3232
* This component manages the workflow details for the workflows tab of the event details modal

src/components/events/partials/ModalTabsAndPages/NewSourcePage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ const Upload = <T extends RequiredFormPropsUpload>({
262262
{/* File upload button for each upload asset */}
263263
<FieldArray
264264
name="uploadAssetsTrack"
265-
render={arrayHelpers => (
265+
render={_arrayHelpers => (
266266
formik.values.uploadAssetsTrack &&
267267
formik.values.uploadAssetsTrack.length > 0 &&
268268
formik.values.uploadAssetsTrack.map((asset, key) => (

src/components/events/partials/SeriesOrganizersCell.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from "react";
21
import { fetchSeries, Series } from "../../../slices/seriesSlice";
32
import { loadSeriesIntoTable } from "../../../thunks/tableThunks";
43
import MultiValueCell from "../../shared/MultiValueCell";

src/components/events/partials/modals/EventDetails.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import EventDetailsWorkflowDetails from "../ModalTabsAndPages/EventDetailsWorkfl
99
import EventDetailsPublicationTab from "../ModalTabsAndPages/EventDetailsPublicationTab";
1010
import EventDetailsWorkflowOperations from "../ModalTabsAndPages/EventDetailsWorkflowOperations";
1111
import EventDetailsWorkflowOperationDetails from "../ModalTabsAndPages/EventDetailsWorkflowOperationDetails";
12-
import EventDetailsWorkflowErrors from "../ModalTabsAndPages/EventDetailsWorkflowErrors";
1312
import EventDetailsWorkflowErrorDetails from "../ModalTabsAndPages/EventDetailsWorkflowErrorDetails";
1413
import EventDetailsAssetsTab from "../ModalTabsAndPages/EventDetailsAssetsTab";
1514
import EventDetailsSchedulingTab from "../ModalTabsAndPages/EventDetailsSchedulingTab";

src/components/shared/DateTimeCell.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from "react";
21
import { useTranslation } from "react-i18next";
32
import { editFilterValue } from "../../slices/tableFilterSlice";
43
import { getFilters } from "../../selectors/tableFilterSelectors";

src/components/shared/DropDown.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ const DropDown = <T, >({
138138
* Custom component for list virtualization
139139
*/
140140
const MenuList = (props: MenuListProps<DropDownOption, false>) => {
141-
const { options, children, maxHeight, getValue } = props;
141+
const { children, maxHeight } = props;
142142

143143
console.log("Menu List render");
144144

@@ -158,7 +158,7 @@ const DropDown = <T, >({
158158
};
159159

160160
const loadOptions = (
161-
inputValue: string,
161+
_inputValue: string,
162162
callback: (options: DropDownOption[]) => void,
163163
) => {
164164
callback(formatOptions(

0 commit comments

Comments
 (0)