Skip to content

Commit 849af5f

Browse files
committed
Fix linting issues
1 parent 29ffac1 commit 849af5f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

frontend/src/pages/QuestionDetail/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const QuestionDetail: React.FC = () => {
3232
}
3333

3434
getQuestionById(questionId, dispatch);
35+
// eslint-disable-next-line react-hooks/exhaustive-deps
3536
}, []);
3637

3738
if (!state.selectedQuestion) {

frontend/src/reducers/questionReducer.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ type QuestionsState = {
2525
selectedQuestionError: string | null;
2626
};
2727

28+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2829
const isQuestion = (question: any): question is QuestionDetail => {
2930
if (!question || typeof question !== "object") {
3031
return false;
@@ -36,6 +37,7 @@ const isQuestion = (question: any): question is QuestionDetail => {
3637
typeof question.description === "string" &&
3738
typeof question.complexity === "string" &&
3839
Array.isArray(question.categories) &&
40+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
3941
(question.categories as Array<any>).every(
4042
(value) => typeof value === "string"
4143
)

0 commit comments

Comments
 (0)