chore: fix various lint/type issues found by oxlint (#2850)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// oxlint-disable unicorn/no-thenable
|
||||
import React, { useEffect } from 'react';
|
||||
import { useDispatch, useSelector } from 'react-redux';
|
||||
import { camelCase } from 'lodash';
|
||||
|
||||
@@ -28,6 +28,10 @@ const renderComponent = children => (
|
||||
let axiosMock;
|
||||
|
||||
describe('ProctoredExamSettings', () => {
|
||||
/**
|
||||
* @param {boolean} isAdmin
|
||||
* @param {string | undefined} org
|
||||
*/
|
||||
function setupApp(isAdmin = true, org = undefined) {
|
||||
mergeConfig({
|
||||
EXAMS_BASE_URL: 'http://exams.testing.co',
|
||||
|
||||
@@ -107,6 +107,7 @@ const TeamSettings = ({
|
||||
)
|
||||
.when('enabled', {
|
||||
is: true,
|
||||
// oxlint-disable-next-line unicorn/no-thenable
|
||||
then: Yup.array().min(1),
|
||||
})
|
||||
.default([])
|
||||
|
||||
Reference in New Issue
Block a user