eslint-plugin-zod-require-default
v0.0.3
Published
Require zod default values
Downloads
8
Maintainers
Readme
eslint-plugin-zod-require-default
Require zod default values
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-zod-require-default
:
npm install eslint-plugin-zod-require-default --save-dev
Usage
Add zod-require-default
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"zod-require-default"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"zod-require-default/rule-name": 2
}
}
Rules
| Name | Description | | :------------------------------------------------------- | :------------------------- | | zod-require-default | Require zod default values |