Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
eslint-plugin-react-hooks-extra
Advanced tools
ESLint React's ESLint plugin for React Hooks related rules.
Extra rules for React Hooks.
[!NOTE] This plugin is already included in
@eslint-react/eslint-plugin
. You don't need to install it separately if you are using@eslint-react/eslint-plugin
.
# npm
npm install --save-dev eslint-plugin-react-hooks-extra
// @ts-check
import js from "@eslint/js";
import reactHooksExtra from "eslint-plugin-react-hooks-extra";
export default [
js.configs.recommended,
{
files: ["**/*.{ts,tsx}"],
plugins: {
"react-hooks-extra": reactHooksExtra,
},
rules: {
// react-hooks-extra recommended rules
"react-hooks-extra/no-direct-set-state-in-use-effect": "warn",
"react-hooks-extra/no-useless-custom-hooks": "warn",
"react-hooks-extra/prefer-use-state-lazy-initialization": "warn",
},
},
];
https://eslint-react.xyz/docs/rules/overview#hooks-extra-rules
v1.23.2 (2025-01-07)
No notable changes in this release.
FAQs
ESLint React's ESLint plugin for React Hooks related rules.
The npm package eslint-plugin-react-hooks-extra receives a total of 156,355 weekly downloads. As such, eslint-plugin-react-hooks-extra popularity was classified as popular.
We found that eslint-plugin-react-hooks-extra 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.