Skip to content
This repository was archived by the owner on Aug 2, 2025. It is now read-only.

Commit ea25120

Browse files
committed
lint: knip it before you ship it
1 parent 0590c05 commit ea25120

File tree

17 files changed

+1029
-108
lines changed

17 files changed

+1029
-108
lines changed

apps/client/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,10 @@
2121
"@chakra-ui/icons": "^2.0.19",
2222
"@chakra-ui/react": "^2.7.1",
2323
"@chakra-ui/theme-tools": "^2.0.18",
24-
"@chakra-ui/toast": "^6.1.4",
2524
"@emotion/react": "^11.11.1",
2625
"@emotion/styled": "^11.8.1",
2726
"@fontsource/poppins": "^4.5.8",
2827
"@formspree/react": "^2.4.1",
29-
"@highlight-run/react": "^3.2.1",
3028
"@nikolovlazar/chakra-ui-prose": "^1.2.1",
3129
"@rollup/plugin-replace": "^4.0.0",
3230
"@sentry/react": "^7.76.0",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from "./CanvasIcon";
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from "./ClipboardIcon";

apps/client/src/components/Nav/Nav.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const DarkModeBTN = ({
106106
colorScheme={"gray"}
107107
/>
108108
);
109-
export const LogoutBTN = ({
109+
const LogoutBTN = ({
110110
logout,
111111
iconColor,
112112
}: {
@@ -133,7 +133,7 @@ export const LogoutBTN = ({
133133
);
134134
};
135135

136-
export const SettingsBTN = ({
136+
const SettingsBTN = ({
137137
iconColor,
138138
pathname,
139139
}: {

apps/client/src/components/PdfViewer/PdfViewer.tsx

Lines changed: 0 additions & 31 deletions
This file was deleted.

apps/client/src/components/PdfViewer/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

apps/client/src/consumers/sbhsApi/schemas.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export enum NoticeYear {
4242
UNKNOWN,
4343
}
4444

45-
export const yearMapping: Record<string, NoticeYear> = {
45+
const yearMapping: Record<string, NoticeYear> = {
4646
"7": NoticeYear.YEAR7,
4747
"8": NoticeYear.YEAR8,
4848
"9": NoticeYear.YEAR9,
@@ -97,7 +97,7 @@ export const noticesSchema = z
9797

9898
export type TimetablNotice = z.output<typeof noticesSchema>[0];
9999

100-
export const bellSchema = z.object({
100+
const bellSchema = z.object({
101101
time: z.string(),
102102
startTime: z.string(),
103103
endTime: z.string().nullish(),
@@ -106,14 +106,14 @@ export const bellSchema = z.object({
106106
period: z.string(),
107107
});
108108

109-
export const subjectSchema = z.object({
109+
const subjectSchema = z.object({
110110
colour: z.string(),
111111
fullTeacher: z.string(),
112112
subject: z.string(),
113113
title: z.string(),
114114
});
115115

116-
export const periodSchema = z.object({
116+
const periodSchema = z.object({
117117
fullTeacher: z.string().nullish(),
118118
teacher: z.string().nullish(),
119119
title: z.string().nullish(),
@@ -147,7 +147,7 @@ export type TimetablPeriod = {
147147
roomTo?: string;
148148
};
149149

150-
export type TimetablDtt = {
150+
type TimetablDtt = {
151151
periods: TimetablPeriod[];
152152
date: string;
153153
};

apps/client/src/hooks/useDownloadBarcode.tsx

Lines changed: 0 additions & 16 deletions
This file was deleted.

apps/client/src/routes/Main/Home/QuickLinks.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import CanvasIcon from "../../../components/CanvasIcon/CanvasIcon";
2-
import ClipboardIcon from "../../../components/ClipboardIcon/ClipboardIcon";
1+
import CanvasIcon from "../../../components/CanvasIcon";
2+
import ClipboardIcon from "../../../components/ClipboardIcon";
33
import { Flex, Button } from "@chakra-ui/react";
44
import { GraduationCap, Envelope } from "phosphor-react";
55
import { JSXElementConstructor, ReactElement, ReactNode } from "react";

apps/client/src/routes/Main/Home/WeekTimetable.tsx

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)