Eslint Plugin React Web Api
eslint-plugin-react-web-api
ESLint React's ESLint plugin for interacting with Web APIs
Utilities
react
web-api
eslint
eslint-react
eslint-plugin
eslint-plugin-react-web-api
Utilities
javascript
npm
frontend
Stars
583
Weekly
1.7M
Open issues
25
Bundle
~25 kB
Installation
npm install eslint-plugin-react-web-apiCode example
import { useEslintPluginReactWebApi } from "eslint-plugin-react-web-api";
export function Example() {
const value = useEslintPluginReactWebApi();
return <p>{String(value)}</p>;
}Pros & cons
Pros
- Actively maintained by Rel1cx
- 1.7M 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
- 25 open issues on GitHub