chore: fix various lint/type issues found by oxlint (#2850)

This commit is contained in:
Braden MacDonald
2026-01-30 17:01:11 -08:00
committed by GitHub
parent b0066e547c
commit 6effb4d39e
36 changed files with 120 additions and 78 deletions

View File

@@ -1,3 +1,4 @@
// oxlint-disable unicorn/no-thenable
import React, { useEffect } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { camelCase } from 'lodash';

View File

@@ -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',

View File

@@ -107,6 +107,7 @@ const TeamSettings = ({
)
.when('enabled', {
is: true,
// oxlint-disable-next-line unicorn/no-thenable
then: Yup.array().min(1),
})
.default([])