Skip to content

Commit 80bb5c3

Browse files
Fix linting warnings
1 parent bb1fd4c commit 80bb5c3

File tree

6 files changed

+10
-1
lines changed

6 files changed

+10
-1
lines changed

backend/typescript/migrations/2024.11.21T16.49.50.add-constraint-behaviour-level-details-table.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { DataType } from "sequelize-typescript";
21
import { Migration } from "../umzug";
32
import { MIN_BEHAVIOUR_LEVEL, MAX_BEHAVIOUR_LEVEL } from "../constants";
43

-219 Bytes
Binary file not shown.

frontend/src/APIClients/AuthAPIClient.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ const loginWithSignInLink = async (
4747
error.code === "auth/invalid-action-code" ||
4848
error.code === "auth/expired-action-code"
4949
) {
50+
// eslint-disable-next-line no-console
5051
console.log(
5152
`Attempt to use invalidated sign-in link, ask administrator for new link: ${error.message}`,
5253
); // link has already been used once or has expired

frontend/src/APIClients/TeamMembersAPIClient.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const get = async (): Promise<TeamMember[] | null> => {
77
const { data } = await baseAPIClient.get("team-members/");
88
return data;
99
} catch (error: unknown) {
10+
// eslint-disable-next-line no-console
1011
console.error("Error fetching team members:", error);
1112
return null;
1213
}
@@ -26,6 +27,7 @@ const create = async (
2627
});
2728
return data;
2829
} catch (error: unknown) {
30+
// eslint-disable-next-line no-console
2931
console.error("Error creating team member:", error);
3032
return null;
3133
}

frontend/src/components/crud/DisplayTableContainer.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ const DisplayTableContainer: React.FC = (): React.ReactElement | null => {
136136
if (data) {
137137
downloadFile(data, "file");
138138
} else {
139+
// eslint-disable-next-line no-console
139140
console.error("Failed to download file: data is null");
140141
}
141142
};
@@ -146,6 +147,7 @@ const DisplayTableContainer: React.FC = (): React.ReactElement | null => {
146147
if (csvString) {
147148
downloadCSV(csvString, "export.csv");
148149
} else {
150+
// eslint-disable-next-line no-console
149151
console.error("Failed to download CSV: csvString is null");
150152
}
151153
// Use the following lines to download CSV using frontend CSV generation instead of API

frontend/src/hooks/useFileUploadManager.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export function useFileUploadManager(maxFileSizeMB: number = 25) {
4646
);
4747
}
4848
} catch (err) {
49+
// eslint-disable-next-line no-console
4950
console.error("Failed to fetch file URL:", err);
5051
}
5152
}, []);
@@ -67,6 +68,7 @@ export function useFileUploadManager(maxFileSizeMB: number = 25) {
6768
if (!fileUrl) throw new Error("File URL does not exist");
6869
return { name: file.name, url: fileUrl };
6970
} catch (err) {
71+
// eslint-disable-next-line no-console
7072
console.error(`Failed to fetch URL for file ${file.name}:`, err);
7173
return null;
7274
}
@@ -79,6 +81,7 @@ export function useFileUploadManager(maxFileSizeMB: number = 25) {
7981
}),
8082
);
8183
} catch (err) {
84+
// eslint-disable-next-line no-console
8285
console.error("Failed to fetch files:", err);
8386
setError("Failed to load existing files");
8487
setUploadedFiles([]);
@@ -127,6 +130,7 @@ export function useFileUploadManager(maxFileSizeMB: number = 25) {
127130
duration: 3000,
128131
});
129132
} catch (err) {
133+
// eslint-disable-next-line no-console
130134
console.error("Upload failed:", err);
131135
setError("Failed to upload file");
132136
toast({
@@ -149,6 +153,7 @@ export function useFileUploadManager(maxFileSizeMB: number = 25) {
149153
duration: 3000,
150154
});
151155
} catch (err) {
156+
// eslint-disable-next-line no-console
152157
console.error("Delete failed:", err);
153158
toast({
154159
title: "Failed to delete file",

0 commit comments

Comments
 (0)