Skip to content

Commit cf48a1b

Browse files
committed
chore: remove unused imports
1 parent a23554c commit cf48a1b

File tree

21 files changed

+17
-48
lines changed

21 files changed

+17
-48
lines changed

site/.knip.jsonc

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
11
{
2-
"$schema": "https://unpkg.com/knip@5/schema.json",
3-
"entry": [
4-
"./src/index.tsx"
5-
],
6-
"project": [
7-
"./src/**/*.ts",
8-
"./src/**/*.tsx"
9-
],
10-
"ignore": [
11-
"**/*Generated.ts"
12-
],
13-
// This sets knip not to report unused exports of types and interfaces
14-
// as long as they are used within the file.
15-
"ignoreExportsUsedInFile": {
16-
"interface": true,
17-
"type": true
18-
}
19-
}
2+
"$schema": "https://unpkg.com/knip@5/schema.json",
3+
"entry": ["./src/index.tsx"],
4+
"project": ["./src/**/*.ts", "./src/**/*.tsx"],
5+
"ignore": ["**/*Generated.ts"],
6+
// This sets knip not to report unused exports of types and interfaces
7+
// as long as they are used within the file.
8+
"ignoreExportsUsedInFile": {
9+
"interface": true,
10+
"type": true
11+
}
12+
}

site/e2e/tests/deployment/idpOrgSync.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
deleteOrganization,
66
setupApiCalls,
77
} from "../../api";
8-
import { users } from "../../constants";
98
import { login, randomName, requiresLicense } from "../../helpers";
109
import { beforeCoderTest } from "../../hooks";
1110

site/e2e/tests/organizations/auditLogs.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type Page, expect, test } from "@playwright/test";
1+
import { expect, test } from "@playwright/test";
22
import {
33
createOrganization,
44
createOrganizationMember,

site/package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,7 @@
200200
"vite-plugin-checker": "0.8.0",
201201
"vite-plugin-turbosnap": "1.0.3"
202202
},
203-
"browserslist": [
204-
"chrome 110",
205-
"firefox 111",
206-
"safari 16.0"
207-
],
203+
"browserslist": ["chrome 110", "firefox 111", "safari 16.0"],
208204
"resolutions": {
209205
"optionator": "0.9.3",
210206
"semver": "7.6.2"
@@ -221,4 +217,4 @@
221217
"prismjs": "1.30.0"
222218
}
223219
}
224-
}
220+
}

site/src/api/queries/organizations.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import type {
88
GroupSyncSettings,
99
PaginatedMembersRequest,
1010
PaginatedMembersResponse,
11-
ProvisionerJobStatus,
1211
RoleSyncSettings,
1312
UpdateOrganizationRequest,
1413
} from "api/typesGenerated";

site/src/components/Avatar/AvatarDataSkeleton.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import Skeleton from "@mui/material/Skeleton";
2-
import { Stack } from "components/Stack/Stack";
32
import type { FC } from "react";
43

54
export const AvatarDataSkeleton: FC = () => {

site/src/modules/dashboard/Navbar/NavbarView.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
import { API } from "api/api";
2-
import { experiments } from "api/queries/experiments";
32
import type * as TypesGen from "api/typesGenerated";
43
import { Button } from "components/Button/Button";
54
import { ExternalImage } from "components/ExternalImage/ExternalImage";
65
import { CoderIcon } from "components/Icons/CoderIcon";
76
import type { ProxyContextValue } from "contexts/ProxyContext";
87
import { useWebpushNotifications } from "contexts/useWebpushNotifications";
9-
import { useEmbeddedMetadata } from "hooks/useEmbeddedMetadata";
108
import { NotificationsInbox } from "modules/notifications/NotificationsInbox/NotificationsInbox";
119
import type { FC } from "react";
12-
import { useQuery } from "react-query";
1310
import { NavLink, useLocation } from "react-router-dom";
1411
import { cn } from "utils/cn";
1512
import { DeploymentDropdown } from "./DeploymentDropdown";

site/src/modules/management/DeploymentSidebarView.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { FeatureStageBadge } from "components/FeatureStageBadge/FeatureStageBadge";
21
import {
32
Sidebar as BaseSidebar,
43
SettingsSidebarNavItem as SidebarNavItem,

site/src/modules/notifications/NotificationsInbox/InboxPopover.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Meta, StoryObj } from "@storybook/react";
2-
import { expect, fn, userEvent, waitFor, within } from "@storybook/test";
2+
import { expect, fn, userEvent, within } from "@storybook/test";
33
import { MockNotifications } from "testHelpers/entities";
44
import { InboxPopover } from "./InboxPopover";
55

site/src/modules/provisioners/JobStatusIndicator.stories.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { Meta, StoryObj } from "@storybook/react";
2-
import { MockProvisionerJob } from "testHelpers/entities";
32
import { JobStatusIndicator } from "./JobStatusIndicator";
43

54
const meta: Meta<typeof JobStatusIndicator> = {

0 commit comments

Comments
 (0)