message: chore: not to use an optional parameter before a required parameter
diff: @@ -24,9 +24,10 @@ type LogicalPlacementMap = Record<
  >
  export function getToastPlacement(
  - position: ToastPosition = "bottom",
  + position: ToastPosition | undefined,
  dir: "ltr" | "rtl",
  ): ToastPosition | undefined {
  + const computedPosition = position ?? "bottom"
  const logicals: LogicalPlacementMap = {
  "top-start": { ltr: "top-left", rtl: "top-right" },
  "top-end": { ltr: "top-right", rtl: "top-left" },
  @@ -34,6 +35,6 @@ export function getToastPlacement(
  "bottom-end": { ltr: "bottom-right", rtl: "bottom-left" },
  }
  - const logical = logicals[position as keyof typeof logicals]
  - return logical?.[dir] ?? position
  + const logical = logicals[computedPosition as keyof typeof logicals]
  + return logical?.[dir] ?? computedPosition
  }
  