Enabled @typescript-eslint/ban-ts-comment eslint rule

This commit is contained in:
Alejandro Celaya
2021-02-28 13:10:23 +01:00
parent 3f616d5482
commit 3d2228441a
5 changed files with 9 additions and 8 deletions

View File

@@ -19,6 +19,7 @@ interface DatePropsInterface {
export type DateInputProps = DatePropsInterface & Omit<ReactDatePickerProps, keyof DatePropsInterface>;
const transformProps = (props: DateInputProps): ReactDatePickerProps => ({
// @ts-expect-error The DatePicker type definition is wrong. It has a ref prop
...dissoc('ref', props),
endDate: props.endDate?.toDate(),
maxDate: props.maxDate?.toDate(),