eslint: Prefer type.array() over z.array(type) (#1810)

## Description:

Prefer `type.array()` over `z.array(type)`.

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
This commit is contained in:
Scott Anderson
2025-08-14 01:43:25 -04:00
committed by GitHub
parent 385ef5ca93
commit 2ed0cef65c
4 changed files with 55 additions and 2 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ export const CosmeticsSchema = z.object({
z.string(),
z.object({
name: z.string(),
flares: z.array(z.string()).optional(),
flares: z.string().array().optional(),
}),
),
color: z.record(
@@ -33,7 +33,7 @@ export const CosmeticsSchema = z.object({
z.object({
color: z.string(),
name: z.string(),
flares: z.array(z.string()).optional(),
flares: z.string().array().optional(),
}),
),
})