From 8a5c65ecb283d1cd1a72ec14c59a70f360f90730 Mon Sep 17 00:00:00 2001 From: Tyler Hill Date: Thu, 24 Oct 2024 21:20:49 -0500 Subject: [PATCH] Lint fix --- src/components/SearchResultsTable.tsx | 2 +- src/components/SingleGradesInfo.tsx | 2 +- src/content.ts | 2 +- src/pages/index.tsx | 4 ++-- src/popup.tsx | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/SearchResultsTable.tsx b/src/components/SearchResultsTable.tsx index 6857cfe..753dd4b 100644 --- a/src/components/SearchResultsTable.tsx +++ b/src/components/SearchResultsTable.tsx @@ -25,9 +25,9 @@ import type { RMPInterface } from '~data/fetchFromRmp'; import type { GenericFetchedData, GradesType } from '~pages'; import { useRainbowColors } from '~utils/colors'; import { - type SearchQuery, convertToCourseOnly, convertToProfOnly, + type SearchQuery, searchQueryLabel, } from '~utils/SearchQuery'; diff --git a/src/components/SingleGradesInfo.tsx b/src/components/SingleGradesInfo.tsx index a8cc6dc..c53993e 100644 --- a/src/components/SingleGradesInfo.tsx +++ b/src/components/SingleGradesInfo.tsx @@ -5,9 +5,9 @@ import BarGraph from '~components/BarGraph'; import { TRENDS_URL } from '~data/config'; import type { GenericFetchedData, GradesType } from '~pages'; import { - type SearchQuery, convertToCourseOnly, convertToProfOnly, + type SearchQuery, searchQueryLabel, } from '~utils/SearchQuery'; diff --git a/src/content.ts b/src/content.ts index c8b97a9..ef59557 100644 --- a/src/content.ts +++ b/src/content.ts @@ -121,7 +121,7 @@ export function listenForTableChange() { ) { //button corresponding to shown table is given an active class if ((mutation.target as Element).classList.contains('active')) { - // @ts-ignore:next-line + // @ts-expect-error:next-line realBrowser.runtime.sendMessage('tableChange'); } } diff --git a/src/pages/index.tsx b/src/pages/index.tsx index a4704f0..6cef1b4 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -14,8 +14,8 @@ import fetchWithCache, { expireTime, } from '~data/fetchWithCache'; import { - type SearchQuery, convertToProfOnly, + type SearchQuery, searchQueryEqual, searchQueryLabel, } from '~utils/SearchQuery'; @@ -142,7 +142,7 @@ function fetchRmpData(professor: SearchQuery): Promise { async function getCourseData() { const response: ShowCourseTabPayload = await sendToBackground({ // See https://docs.plasmo.com/framework/messaging#3-generate-static-types - // @ts-ignore:next-line + // @ts-expect-error:next-line name: 'getScrapeData', }); return response; diff --git a/src/popup.tsx b/src/popup.tsx index 223f32d..ffdcef3 100644 --- a/src/popup.tsx +++ b/src/popup.tsx @@ -2,8 +2,8 @@ import '~/style.css'; import { useMediaQuery } from '@mui/material'; import { createTheme, ThemeProvider } from '@mui/material/styles'; -import resolveConfig from 'tailwindcss/resolveConfig'; import React from 'react'; +import resolveConfig from 'tailwindcss/resolveConfig'; import Index from '~/pages'; import { neededOrigins } from '~data/config';