Eslint Plugin React X
eslint-plugin-react-x
A set of composable ESLint rules for libraries and frameworks that use React as a UI runtime.
Utilities
react
eslint
eslint-react
eslint-plugin
eslint-plugin-react-x
Utilities
javascript
npm
frontend
open source
Stars
595
Weekly
1.2M
Open issues
34
Bundle
~25 kB
Installation
npm install eslint-plugin-react-xCode example
import { useEslintPluginReactX } from "eslint-plugin-react-x";
export function Example() {
const value = useEslintPluginReactX();
return <p>{String(value)}</p>;
}Pros & cons
Pros
- Actively maintained by Rel1cx
- 1.2M weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~25 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 34 open issues on GitHub