ESLint plugin (v1.2.1) that enforces namespace imports for zod (`import * as z from "zod"`) to improve tree-shaking and reduce bundle sizes. Targets eslint >=9 and Node >=20, ships TypeScript types. Auto-fixable: converts default/named imports to namespace imports, splits mixed imports. Released as v1.0.0 in 2025, with active development (recent patches). Unique vs other import rules: specifically for zod ecosystem.
Verified import paths — ran on the pinned version, not inferred.
ESM-only; default export. Use dynamic import if needed in CJS.
Rule name is a string; imported plugin provides it.
configs.recommended is an array of config objects.
Sets up the plugin with recommended config and enables the prefer-zod-namespace rule in ESLint flat config.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.