diff --git a/src/images/imageWindow.component.test.tsx b/src/images/imageWindow.component.test.tsx
index 8466c6b6..ec6a65eb 100644
--- a/src/images/imageWindow.component.test.tsx
+++ b/src/images/imageWindow.component.test.tsx
@@ -6,7 +6,6 @@ import { renderComponentWithProviders } from '../testUtils';
import ImageWindow from './imageWindow.component';
vi.mock('../windows/windowPortal.component', async () => {
- // eslint-disable-next-line @typescript-eslint/no-var-requires
const ReactMock = await vi.importActual('react');
return {
default: ReactMock.forwardRef(({ children }, ref) => (
diff --git a/src/main.tsx b/src/main.tsx
index 1adb332b..07e107bc 100644
--- a/src/main.tsx
+++ b/src/main.tsx
@@ -198,7 +198,6 @@ async function prepare() {
import.meta.env.VITE_APP_INCLUDE_MSW === 'true' ||
settingsResult?.apiUrl === ''
) {
- // Need to use require instead of import as import breaks when loaded in SG
const { worker } = await import('./mocks/browser');
return worker.start({
onUnhandledRequest(request, print) {
diff --git a/src/plotting/plot.component.tsx b/src/plotting/plot.component.tsx
index a66664b8..2bca686f 100644
--- a/src/plotting/plot.component.tsx
+++ b/src/plotting/plot.component.tsx
@@ -8,8 +8,6 @@ import {
} from '../app.types';
// only import types as we don't actually run any chart.js code in React
import type { ChartDataset, ChartOptions } from 'chart.js';
-// we import this even though we don't use it so we can get typescript info added to ChartOptions
-// eslint-disable-next-line @typescript-eslint/no-unused-vars
export interface PlotProps {
datasets: PlotDataset[];
diff --git a/src/plotting/plotSettings/plotSettingsController.component.test.tsx b/src/plotting/plotSettings/plotSettingsController.component.test.tsx
index 7de0c7ae..9597c9c3 100644
--- a/src/plotting/plotSettings/plotSettingsController.component.test.tsx
+++ b/src/plotting/plotSettings/plotSettingsController.component.test.tsx
@@ -24,9 +24,9 @@ describe('Plot Settings component', () => {
const createView = async () => {
// need to import like this in order for the doMock's to work
- const PlotSettingsController =
- // eslint-disable-next-line @typescript-eslint/no-var-requires
- (await vi.importActual('./plotSettingsController.component')).default;
+ const PlotSettingsController = (
+ await vi.importActual('./plotSettingsController.component')
+ ).default;
return render();
};
diff --git a/src/plotting/plotWindow.component.test.tsx b/src/plotting/plotWindow.component.test.tsx
index ea0308a9..2a512e33 100644
--- a/src/plotting/plotWindow.component.test.tsx
+++ b/src/plotting/plotWindow.component.test.tsx
@@ -12,7 +12,6 @@ import { WindowPortal } from '../windows/windowPortal.component';
import PlotWindow from './plotWindow.component';
vi.mock('../windows/windowPortal.component', async () => {
- // eslint-disable-next-line @typescript-eslint/no-var-requires
const ReactMock = await vi.importActual('react');
return {
default: ReactMock.forwardRef(({ children }, ref) => (
diff --git a/src/testUtils.tsx b/src/testUtils.tsx
index 1d1027cc..e0950934 100644
--- a/src/testUtils.tsx
+++ b/src/testUtils.tsx
@@ -1,15 +1,9 @@
-import React from 'react';
-// jest-dom adds custom jest matchers for asserting on DOM nodes.
-// allows you to do things like:
-// expect(element).toHaveTextContent(/react/i)
-// learn more: https://github.com/testing-library/jest-dom
-import '@testing-library/jest-dom';
-// need to mock