You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

eslint-plugin-react-hook-form

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-react-hook-form

eslint plugin for react-hook-form

0.1.0
Source
npmnpm
Version published
Weekly downloads
7K
-8.4%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-plugin-react-hook-form

This ESlint plugin check if there is any issue with your react-hook-form.

Installation

Assuming you already have ESLint installed, run:

# npm
npm install eslint-plugin-react-hook-form --save-dev

# yarn
yarn add eslint-plugin-react-hook-form --dev

Then add the rules to the eslint config:

{
    "plugins": [
        // ...
        "eslint-plugin-react-hook-form"
    ],
    "rules": {
        // ...
        "react-hook-form/destructuring-formState": "error"
    }
}

The problem

react-hook-form is an awsome library which provide a neat solution for building forms. However, there are many rules for the API which may be missed by the developer. This plugin aims to check those rules automatically thourgh ESLint. Thus brings better DX for react-hook-form.

Supported Rules

Possible Errors

Rule NameDescription
destructuring-formStateenforce the properties of formState being destructored

Keywords

react

FAQs

Package last updated on 08 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.