eslint-plugin-zod-x

ESLint plugin that adds custom linting rules to enforce best practices when using Zod
Rules
💼 Configurations enabled in.
✅ Set in the recommended configuration.
🔧 Automatically fixable by the --fix CLI option.
💡 Manually fixable by editor suggestions.
Installation
Install eslint and eslint-plugin-zod-x using your preferred package manager:
npm i --save-dev eslint eslint-plugin-zod-x
yarn add --dev eslint eslint-plugin-zod-x
pnpm add --save-dev eslint eslint-plugin-zod-x
Configuration
-
Import the plugin
import eslintPluginZodX from 'eslint-plugin-zod-x';
-
Add recommended config to your ESLint setup
eslintPluginZodX.configs.recommended,
Here’s a minimal example using the flat config format:
import { defineConfig } from 'eslint/config';
import eslint from '@eslint/js';
import eslintPluginZodX from 'eslint-plugin-zod-x';
export default defineConfig(
eslint.configs.recommended,
eslintPluginZodX.configs.recommended,
);