feat: refactor non instruction components #959
Annotations
10 errors and 2 warnings
tests:
src/core/OuterExamTimer.jsx#L29
React Hook useEffect has a missing dependency: 'dispatch'. Either include it or remove the dependency array
|
tests:
src/data/thunks.js#L477
Unexpected newline before ')'
|
tests:
src/exam/Exam.jsx#L80
React Hook useEffect has missing dependencies: 'canAccessProctoredExams', 'dispatch', 'examType', and 'proctoredExamTypes'. Either include them or remove the dependency array. If 'setHasProctoredExamAccess' needs the current value of 'canAccessProctoredExams', you can also switch to useReducer instead of useState and read 'canAccessProctoredExams' in the reducer
|
tests:
src/exam/ExamWrapper.jsx#L42
React Hook useEffect has missing dependencies: 'isLoading', 'loadInitialData', and 'sequence.isTimeLimited'. Either include them or remove the dependency array
|
tests:
src/index.jsx#L1
'default' is restricted from being used as an exported name
|
tests:
src/instructions/proctored_exam/ReadyToStartProctoredExamInstructions.jsx#L23
React Hook useEffect has a missing dependency: 'dispatch'. Either include it or remove the dependency array
|
tests:
src/timer/ExamTimerBlock.jsx#L57
React Hook useEffect has a missing dependency: 'expireExamAttempt'. Either include it or remove the dependency array
|
tests:
src/timer/TimerProvider.jsx#L83
Assignments to the 'liveInterval' variable from inside React Hook useEffect will be lost after each render. To preserve the value over time, store it in a useRef Hook and keep the mutable value in the '.current' property. Otherwise, you can move this variable directly inside useEffect
|
tests:
src/timer/TimerProvider.jsx#L106
The object passed as the value prop to the Context provider (at line 106) changes every render. To fix this consider wrapping it in a useMemo hook
|
tests
Process completed with exit code 1.
|
tests
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
tests
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|