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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
- Added `.gitattributes` file to standardize to LF line endings and renormalized codebase
- Added invalid JSON graph test coverage for `saveGraphJSON` in `app/Controllers/Graph.hs`
- Converted various JS files to TypeScript
- Fixed lint-staged check for CSS files

## [0.8.1] - 2026-08-10

Expand Down
8 changes: 5 additions & 3 deletions js/components/common/react_modal.js.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ class CourseModal extends React.Component {
}
}

/**
* Helper function to format a Time data object for display in the course modal.
/**
* Helper function to format a Time data object for display in the course modal.
* @param {object} time A Time data object.
* @returns {string} The time formatted as a string (e.g. "Tuesday 11 - 13").
* */
Expand All @@ -152,7 +152,9 @@ class CourseModal extends React.Component {
*/
getTable(allMeetTimes, session) {
// Filter and sort the lecture sections in the specified session by their section code
const filteredMeetTimes = allMeetTimes.filter(meetTime => meetTime.meetData.session === session)
const filteredMeetTimes = allMeetTimes.filter(
meetTime => meetTime.meetData.session === session
)
const sortedMeetTimes = filteredMeetTimes.sort((firstMeetTime, secondMeetTime) =>
firstMeetTime.meetData.section > secondMeetTime.meetData.section ? 1 : -1
)
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"test": "jest",
"typecheck": "tsc",
"prettier": "prettier --write .",
"eslint": "eslint --fix js"
"eslint": "eslint --fix js",
"stylelint": "stylelint --fix"
},
"private": true,
"engines": {
Expand All @@ -21,8 +22,8 @@
"lint-staged": {
"*": "pnpm prettier --ignore-unknown --write",
"*.{js,ts,tsx}": "pnpm run eslint --cache --fix js",
"*.css": "pnpm run stylelint --fix",
"*.scss": "pnpm run stylelint --fix",
"*.css": "pnpm run stylelint",
"*.scss": "pnpm run stylelint",
"*.hs": [
"stack exec hlint",
"stack exec fourmolu -- --mode check"
Expand Down
Loading