Skip to content

Commit

Permalink
chore: Mute eslint complexity warning for dateValidator
Browse files Browse the repository at this point in the history
  • Loading branch information
kellnerd committed Jun 26, 2024
1 parent 85cf422 commit f3ec5ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/validators/date.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ function isEmpty(value: any): boolean {
return _isNil(value) || value === '';
}

// eslint-disable-next-line complexity -- Date validation is complex unless we want to use a library
export function dateValidator(dayObj, monthObj, yearObj): void {
const year = Number.parseInt(yearObj, 10);
const month = Number.parseInt(monthObj, 10);
Expand Down

0 comments on commit f3ec5ea

Please sign in to comment.