Skip to content

Commit

Permalink
fix: no wrapper object type
Browse files Browse the repository at this point in the history
  • Loading branch information
keellyp committed Nov 12, 2024
1 parent 83dd281 commit 5cc2e62
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ export default [
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/no-unsafe-function-type': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-wrapper-object-types': 'off',
},
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/components/coupons/AddBillableMetricToCouponDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export type AddBillableMetricToCouponDialogRef = DialogRef

interface AddBillableMetricToCouponDialogProps {
onSubmit: Function
attachedBillableMetricsIds?: String[]
attachedBillableMetricsIds?: string[]
}

export const AddBillableMetricToCouponDialog = forwardRef<
Expand Down
2 changes: 1 addition & 1 deletion src/components/coupons/AddPlanToCouponDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export type AddPlanToCouponDialogRef = DialogRef

interface AddPlanToCouponDialogProps {
onSubmit: Function
attachedPlansIds?: String[]
attachedPlansIds?: string[]
}

export const AddPlanToCouponDialog = forwardRef<DialogRef, AddPlanToCouponDialogProps>(
Expand Down
2 changes: 1 addition & 1 deletion src/components/designSystem/ShowMoreText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useInternationalization } from '~/hooks/core/useInternationalization'
interface ShowMoreTextProps extends TypographyProps {
text: string
limit: number
showMore?: String | ReactElement
showMore?: string | ReactElement
}

export const ShowMoreText = ({ text, limit, showMore, ...props }: ShowMoreTextProps) => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/form/ComboBox/ComboBoxField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface ComboBoxFieldProps extends Omit<ComboBoxProps, 'onChange' | 'value' |
name: string
// eslint-disable-next-line @typescript-eslint/no-explicit-any
formikProps: FormikProps<any>
isEmptyNull?: Boolean // If false, on field reset the combobox will return an empty string
isEmptyNull?: boolean // If false, on field reset the combobox will return an empty string
containerClassName?: string
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface MultipleComboBoxFieldProps
name: string
// eslint-disable-next-line @typescript-eslint/no-explicit-any
formikProps: FormikProps<any>
isEmptyNull?: Boolean // If false, on field reset the Multiplecombobox will return an empty string
isEmptyNull?: boolean // If false, on field reset the Multiplecombobox will return an empty string
}

export const MultipleComboBoxField = memo(
Expand Down
2 changes: 1 addition & 1 deletion src/components/plans/ChargesSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export const ChargesSection = memo(
const [showAddRecurringCharge, setShowAddRecurringCharge] = useState(false)
const newChargeId = useRef<string | null>(null)
const removeChargeWarningDialogRef = useRef<RemoveChargeWarningDialogRef>(null)
const [alreadyUsedBmsIds, setAlreadyUsedBmsIds] = useState<Map<String, number>>(new Map())
const [alreadyUsedBmsIds, setAlreadyUsedBmsIds] = useState<Map<string, number>>(new Map())
const hasAnyMeteredCharge = useMemo(
() => formikProps.values.charges.some((c) => !c.billableMetric.recurring),
// eslint-disable-next-line react-hooks/exhaustive-deps
Expand Down

0 comments on commit 5cc2e62

Please sign in to comment.