
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
eslint-plugin-react-hooks-docs
Advanced tools
Eslint plugin to enforce react hooks documentation
🚨 Eslint plugin to enforce react hooks documentation.
npm i eslint eslint-plugin-react-hooks-docs --save-dev
OR
yarn add -D eslint eslint-plugin-react-hooks-docs
You can extend the recommended configuration by adding 'plugin:eslint-plugin-react-hooks-docs/recommended' to the extends
array in your eslintrc
.
extends: ['plugin:eslint-plugin-react-hooks-docs/recommended'],
Add react-hooks-docs
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": ["react-hooks-docs"]
}
Then configure the rules you want to use under the rules section. Note that the 2nd param is optional extra configurations.
{
"rules": {
"react-hooks-docs/docs": [
2,
{
"skipDeclarations": true,
"skipHooks": []
}
]
}
}
Enforces documentation to exist in the form of a comment for react hooks calls.
Options:
const [state, setState] = useState(0);
.useCustomHook
Built with ❤︎ by Ahmed Tokyo
FAQs
Eslint plugin to enforce react hooks documentation
The npm package eslint-plugin-react-hooks-docs receives a total of 117 weekly downloads. As such, eslint-plugin-react-hooks-docs popularity was classified as not popular.
We found that eslint-plugin-react-hooks-docs 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.