Skip to content

Commit e9cd2c6

Browse files
authored
🌱 Run npm run lint:fix and some minor adjustments (#2729)
After #2697, run `npm run lint:fix` to apply autofixes. Some additional adjustments were needed after the autofixes were applied. ## Summary by CodeRabbit * **Refactor** * Standardized and consolidated import styles across many components and tests for consistent code formatting; no behavioral changes. * **Chores** * Updated formatting scripts to include an additional ignore path for formatting checks. * **Style** * Removed a lint directive comment from a public asset; no runtime or functional impact. --------- Signed-off-by: Scott J Dickerson <[email protected]>
1 parent 40694d3 commit e9cd2c6

File tree

21 files changed

+49
-59
lines changed

21 files changed

+49
-59
lines changed

client/public/mockServiceWorker.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable */
21
/* tslint:disable */
32

43
/**

client/src/app/components/answer-table/answer-table.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
import React from "react";
1+
import * as React from "react";
22
import { useTranslation } from "react-i18next";
3-
import { Label, Text, Tooltip } from "@patternfly/react-core";
4-
import { List, ListItem } from "@patternfly/react-core";
5-
import { TimesCircleIcon } from "@patternfly/react-icons";
6-
import { WarningTriangleIcon } from "@patternfly/react-icons";
7-
import { InfoCircleIcon } from "@patternfly/react-icons";
3+
import { Label, List, ListItem, Text, Tooltip } from "@patternfly/react-core";
4+
import {
5+
InfoCircleIcon,
6+
TimesCircleIcon,
7+
WarningTriangleIcon,
8+
} from "@patternfly/react-icons";
89
import spacing from "@patternfly/react-styles/css/utilities/Spacing/spacing";
910
import { Table, Tbody, Td, Th, Thead, Tr } from "@patternfly/react-table";
1011

client/src/app/components/detail-drawer/review-fields.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from "react";
1+
import * as React from "react";
22
import { useTranslation } from "react-i18next";
33
import {
44
DescriptionListDescription,
@@ -11,8 +11,7 @@ import { EFFORT_ESTIMATE_LIST, PROPOSED_ACTION_LIST } from "@app/Constants";
1111
import { Application, Archetype, Review } from "@app/api/models";
1212
import { EmptyTextMessage } from "@app/components/EmptyTextMessage";
1313
import { useFetchArchetypes } from "@app/queries/archetypes";
14-
import { useFetchReviewById } from "@app/queries/reviews";
15-
import { useFetchReviews } from "@app/queries/reviews";
14+
import { useFetchReviewById, useFetchReviews } from "@app/queries/reviews";
1615

1716
import { ReviewLabel } from "./review-label";
1817

client/src/app/components/insights/tables/all-insights-table.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ import { Table, Tbody, Td, Th, Thead, Tr } from "@patternfly/react-table";
1212

1313
import { TablePersistenceKeyPrefix, UI_UNIQUE_ID } from "@app/Constants";
1414
import { Paths } from "@app/Paths";
15-
import { UiAnalysisReportInsight } from "@app/api/models";
16-
import { HubRequestParams } from "@app/api/models";
15+
import { HubRequestParams, UiAnalysisReportInsight } from "@app/api/models";
1716
import { AppPlaceholder } from "@app/components/AppPlaceholder";
1817
import { FilterToolbar } from "@app/components/FilterToolbar";
1918
import { SimplePagination } from "@app/components/SimplePagination";

client/src/app/components/insights/tables/single-application-insights-table.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ import { Table, Tbody, Td, Th, Thead, Tr } from "@patternfly/react-table";
1919
import { TablePersistenceKeyPrefix, UI_UNIQUE_ID } from "@app/Constants";
2020
import {
2121
Application,
22+
HubRequestParams,
2223
UiAnalysisReportApplicationInsight,
2324
} from "@app/api/models";
24-
import { HubRequestParams } from "@app/api/models";
2525
import { AppPlaceholder } from "@app/components/AppPlaceholder";
2626
import { ConditionalTooltip } from "@app/components/ConditionalTooltip";
2727
import { FilterToolbar } from "@app/components/FilterToolbar";

client/src/app/hooks/table-controls/filtering/useFilterState.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ import { DiscriminatedArgs } from "@app/utils/type-utils";
66

77
import { IFeaturePersistenceArgs, isPersistenceProvider } from "../types";
88

9-
import { serializeFilterUrlParams } from "./helpers";
10-
import { deserializeFilterUrlParams } from "./helpers";
9+
import {
10+
deserializeFilterUrlParams,
11+
serializeFilterUrlParams,
12+
} from "./helpers";
1113

1214
/**
1315
* The "source of truth" state for the filter feature.

client/src/app/hooks/useSelectionState/useSelectionState.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { act } from "@testing-library/react";
2-
import { renderHook } from "@testing-library/react";
1+
import { act, renderHook } from "@testing-library/react";
32

43
import { useSelectionState } from "./useSelectionState";
54

client/src/app/pages/applications/analysis-wizard/__tests__/analysis-wizard.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import React from "react";
21
import "@testing-library/jest-dom";
3-
import { server } from "@mocks/server";
42
import userEvent from "@testing-library/user-event";
53
import { rest } from "msw";
64

@@ -10,6 +8,7 @@ import {
108
screen,
119
waitFor,
1210
} from "@app/test-config/test-utils";
11+
import { server } from "@mocks/server";
1312

1413
import { AnalysisWizard } from "../analysis-wizard";
1514

client/src/app/pages/applications/application-detail-drawer/components/download-button.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import React from "react";
2-
import { Button } from "@patternfly/react-core";
3-
import { Alert, Spinner } from "@patternfly/react-core";
1+
import * as React from "react";
2+
import { Alert, Button, Spinner } from "@patternfly/react-core";
43
import spacing from "@patternfly/react-styles/css/utilities/Spacing/spacing";
54

65
import { Application, MimeType } from "@app/api/models";

client/src/app/pages/applications/application-form/__tests__/application-form.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import React from "react";
2-
import { server } from "@mocks/server";
31
import userEvent from "@testing-library/user-event";
42
import "@testing-library/jest-dom";
53
import { rest } from "msw";
@@ -10,6 +8,7 @@ import {
108
screen,
119
waitFor,
1210
} from "@app/test-config/test-utils";
11+
import { server } from "@mocks/server";
1312

1413
import { ApplicationFormModal } from "../application-form-modal";
1514

0 commit comments

Comments
 (0)