Skip to content

Commit 81cfe10

Browse files
committed
Clean up linting warnings
1 parent a8bedd4 commit 81cfe10

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

website/src/apis/nextbus-new.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ const baseURL = 'https://nnextbus.nusmods.com'; // TODO: wait until we have an a
22

33
export const getStopTimings = async (
44
stop: string,
5-
callback?: (data: any) => void,
6-
error?: (e: any) => void,
5+
callback?: (data: unknown) => void,
6+
error?: (e: unknown) => void,
77
) => {
88
if (!stop) return;
9-
const API_AUTH = ''; // TODO: wait until we have an api proxy
9+
// TODO: wait until we have an api proxy
10+
// const API_AUTH = '';
1011
try {
1112
const headers = {
1213
// headers: {

website/src/utils/mobility.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ export const getServiceStatus = (period: 'term' | 'vacation' = 'term') => {
4545
}
4646
}
4747

48-
console.log(nextBlock, i, 'service:', service.id);
4948
if (nextBlock) {
5049
return {
5150
id: service.id,

website/src/views/mobility/MobilityContainer/MobilityContainer.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { ArrowDownLeft, ArrowUpRight, ChevronLeft } from 'react-feather';
77
import useScrollToTop from 'views/hooks/useScrollToTop';
88

99
import LocationMap from 'views/components/bus-map/LocationMap';
10-
import NoFooter from 'views/layout/NoFooter';
1110
import { getRouteSegments, getServiceStatus } from 'utils/mobility';
1211
import NUSModerator from 'nusmoderator';
1312
import styles from './MobilityContainer.scss';

website/src/views/mobility/StopDetails.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ function StopDetails(props: Props) {
370370
(data) => {
371371
setSelectedStopTiming(data);
372372
},
373-
(error) => {
373+
() => {
374374
// console.error(error);
375375
setSelectedStopTiming('error');
376376
},
@@ -507,7 +507,7 @@ function StopDetails(props: Props) {
507507
<li className={styles.serviceWithChevron}>
508508
<div className={classNames(styles.incomingBus)}>
509509
<div className={styles.busNames}>
510-
{buses.map((bus, j) => (
510+
{buses.map((bus) => (
511511
<span
512512
className={styles.service}
513513
style={

0 commit comments

Comments
 (0)