File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ const QuestionDetail: React.FC = () => {
32
32
}
33
33
34
34
getQuestionById ( questionId , dispatch ) ;
35
+ // eslint-disable-next-line react-hooks/exhaustive-deps
35
36
} , [ ] ) ;
36
37
37
38
if ( ! state . selectedQuestion ) {
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ type QuestionsState = {
25
25
selectedQuestionError : string | null ;
26
26
} ;
27
27
28
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
28
29
const isQuestion = ( question : any ) : question is QuestionDetail => {
29
30
if ( ! question || typeof question !== "object" ) {
30
31
return false ;
@@ -36,6 +37,7 @@ const isQuestion = (question: any): question is QuestionDetail => {
36
37
typeof question . description === "string" &&
37
38
typeof question . complexity === "string" &&
38
39
Array . isArray ( question . categories ) &&
40
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
39
41
( question . categories as Array < any > ) . every (
40
42
( value ) => typeof value === "string"
41
43
)
You can’t perform that action at this time.
0 commit comments