src/datepicker/engine/flag-days-calendar.ts
Function flagDaysCalendar
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function flagDaysCalendar(
formattedMonth: DaysCalendarViewModel,
options: FlagDaysCalendarOptions
): DaysCalendarViewModel {
formattedMonth.weeks.forEach((week: WeekViewModel, weekIndex: number) => {
Consider simplifying this complex logical expression. Open
Open
if (
day.isOtherMonth !== newDay.isOtherMonth ||
day.isHovered !== newDay.isHovered ||
day.isSelected !== newDay.isSelected ||
day.isSelectionStart !== newDay.isSelectionStart ||