[chore] fix lint errors

This commit is contained in:
MathieuG-P
2023-07-01 03:01:38 +02:00
parent 7addb57613
commit d62727c3f9
55 changed files with 176 additions and 181 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
import { BsvMapDetail } from "shared/models/maps";
export function getMapZipUrlFromMapDetails(map: BsvMapDetail){
const hash = map.versions.at(0).hash;
const { hash } = map.versions.at(0);
return getMapZipUrlFromHash(hash);
}
+4 -4
View File
@@ -1,14 +1,14 @@
const SECONDS_IN_MINUTE = 60;
const MINUTES_IN_HOUR = 60;
export function min_to_s(minutes: number): number{
export function minToS(minutes: number): number{
return minutes * SECONDS_IN_MINUTE;
}
export function hour_to_min(hours: number): number{
export function hourToMin(hours: number): number{
return hours * MINUTES_IN_HOUR;
}
export function hour_to_s(hours: number): number{
return hours * min_to_s(MINUTES_IN_HOUR);
export function hourToS(hours: number): number{
return hours * minToS(MINUTES_IN_HOUR);
}