
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
eslint-plugin-react-hook-form
Advanced tools
This ESlint plugin check if there is any issue with your react-hook-form.
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"
}
}
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.
Rule Name | Description |
---|---|
destructuring-formState | enforce the properties of formState being destructored |
FAQs
ESLint plugin for react-hook-form
The npm package eslint-plugin-react-hook-form receives a total of 5,382 weekly downloads. As such, eslint-plugin-react-hook-form popularity was classified as popular.
We found that eslint-plugin-react-hook-form demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.