1.0.1 • Published 5 months ago

eslint-plugin-zustand v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

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

NameDescription
no-destructuredoes not let you destructure values from zustand store
1.0.1

5 months ago

1.0.0

1 year ago