ESLint Zod
8 rules eslint-plugin-zod@4.14.2
Complete effective rule inventory.
Rules
No enabled ESLint Zod rules match this search.
-
zod/no-any-schemaDisallow usage of
z.any()in Zod schemas -
zod/no-coerce-booleanDisallow
z.coerce.boolean()because it treats any non-empty string astrue. -
zod/no-conflicting-checksDisallow check combinations that can never match, are redundant, or do not apply to the schema type
-
zod/no-duplicate-schema-methodsDisallow calling the same schema method more than once in a single chain
-
zod/no-throw-in-refineDisallow throwing errors directly inside Zod refine callbacks
-
zod/no-transform-in-record-keyDisallow transforms in z.record() key schemas, which can cause silent key mutations and data loss through key collisions
-
zod/prefer-enum-over-literal-unionPrefer
z.enum()overz.union()when all members are string literals. -
zod/prefer-nullishEnforce
.nullish()instead of combining.optional()and.nullable()