no-redundant-optional-array-default
Remove .optional() immediately inside a Zod array default.
Why
An outer default already accepts undefined array input, so the inner optional wrapper adds no state or fallback behavior.
Fix
Keep the array default and remove the immediately preceding .optional() call.
Examples
import { z } from "zod";const Items = z.array(z.string()).optional().default([]);import { z } from "zod";const Items = z.array(z.string()).default([]);Autofix output
import { z } from "zod";const Items = z.array(z.string()).default([]);