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
252k
Weekly
0
Open issues
1469
Bundle
~60 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
- 0 weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~60 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 1469 open issues on GitHub