eslint-plugin-zustand
v1.0.0
Published
does not let you destructure values from zustand store
Downloads
843
Maintainers
Readme
eslint-plugin-zustand
does not let you destructure values from zustand store
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-zustand
:
npm install eslint-plugin-zustand --save-dev
Usage
Add zustand
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"zustand"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"zustand/rule-name": 2
}
}
Rules
| Name | Description | | :--------------------------------------------- | :----------------------------------------------------- | | no-destructure | does not let you destructure values from zustand store |