Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,11 @@ module.exports = {
trailingComma: 'all',
useTabs: false,
endOfLine: 'auto',
plugins: ['@ianvs/prettier-plugin-sort-imports'],
importOrder: [
'<BUILTIN_MODULES>', // Node.js built-in modules
'<THIRD_PARTY_MODULES>', // Imports not matched by other special words or groups.
'^(@src)(/.*)$',
'^[.]', // relative imports
],
};
204 changes: 40 additions & 164 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"dependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@ianvs/prettier-plugin-sort-imports": "^4.7.0",
"@mui/icons-material": "^5.17.1",
"@mui/material": "^5.17.1",
"@plasmohq/messaging": "^0.7.1",
Expand Down Expand Up @@ -46,7 +47,6 @@
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"postcss": "^8.5.3",
"prettier": "^3.5.3",
"tailwindcss": "^3.4.17",
Expand All @@ -65,7 +65,6 @@
],
"parser": "@typescript-eslint/parser",
"plugins": [
"simple-import-sort",
"@typescript-eslint"
],
"rules": {
Expand All @@ -85,8 +84,6 @@
]
}
],
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
Expand Down
5 changes: 2 additions & 3 deletions src/app/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { sendToBackground } from '@plasmohq/messaging';
import React, { useEffect, useState } from 'react';

import type { ShowCourseTabPayload } from '~background';
import CourseOverview from '~components/CourseOverview';
import Landing from '~components/Landing';
Expand All @@ -17,10 +15,11 @@ import type { GenericFetchedData } from '~types/GenericFetchedData';
import type { GradesData, GradesType } from '~types/GradesType';
import {
convertToProfOnly,
type SearchQuery,
searchQueryEqual,
searchQueryLabel,
type SearchQuery,
} from '~types/SearchQuery';
import React, { useEffect, useState } from 'react';

//Find GPA, total, and grade_distribution based on including some set of semesters
function calculateGrades(grades: GradesData, academicSessions?: string[]) {
Expand Down
1 change: 0 additions & 1 deletion src/background/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Storage } from '@plasmohq/storage';

import {
addGCalButtons,
listenForTableChange,
Expand Down
1 change: 0 additions & 1 deletion src/background/messages/getScrapeData.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { PlasmoMessaging } from '@plasmohq/messaging';

import { getScrapedCourseData } from '..';

const handler: PlasmoMessaging.MessageHandler = async (req, res) => {
Expand Down
3 changes: 1 addition & 2 deletions src/components/BarGraph.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { useMediaQuery } from '@mui/material';
import { useRainbowColors } from '~utils/colors';
import { type ApexOptions } from 'apexcharts';
import dynamic from 'next/dynamic';
import React from 'react';

import { useRainbowColors } from '~utils/colors';

const Chart = dynamic(() => import('react-apexcharts'), { ssr: false });

type GraphProps = {
Expand Down
5 changes: 2 additions & 3 deletions src/components/CourseOverview.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { Skeleton } from '@mui/material';
import React from 'react';

import { TRENDS_URL } from '~data/config';
import type { GenericFetchedData } from '~types/GenericFetchedData';
import type { GradesType } from '~types/GradesType';
import { type SearchQuery, searchQueryLabel } from '~types/SearchQuery';
import { searchQueryLabel, type SearchQuery } from '~types/SearchQuery';
import gpaToLetterGrade from '~utils/gpaToLetterGrade';
import React from 'react';

type CourseOverviewProps = {
header: string | SearchQuery;
Expand Down
Loading