Eslint Plugin React Hooks
eslint-plugin-react-hooks
ESLint rules for React Hooks
Utilities
eslint
eslint-plugin
eslintplugin
react
eslint-plugin-react-hooks
Utilities
javascript
npm
frontend
open source
Stars
2.1k
Weekly
83M
Open issues
27
Bundle
~15 kB
Installation
npm install eslint-plugin-react-hooksCode example
import { useEslintPluginReactHooks } from "eslint-plugin-react-hooks";
export function Example() {
const value = useEslintPluginReactHooks();
return <p>{String(value)}</p>;
}Pros & cons
Pros
- Actively maintained by react-bot
- 83M weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~15 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 27 open issues on GitHub