lib/utils/time.ts
Function getMonthsTimeslots
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
baseline: Availability,
month: number,
year: number,
booked?: Availability,
from: Date = new Date(),
Function getDate
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
weekday: number,
hours: number,
minutes = 0,
seconds = 0,
milliseconds = 0,
Function getDateWithTime
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
hours: number,
minutes = 0,
seconds = 0,
milliseconds = 0,
reference = new Date(0)
Function getAlgoliaAvailability
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
availability: Availability,
booked = (new Availability()),
until = (new Date(new Date().getFullYear(), new Date().getMonth() + 3)),
interval = 15,
duration = 60
Avoid too many return
statements within this function. Open
Open
return timeslots;