ESLint React
Welcome to the ESLint React documentation.
A set of composable ESLint rules for libraries and frameworks that use React as a UI runtime.
Features
- Flexible: Increased flexibility with more granular severity control.
- Comprehensive: First-class support for TypeScript, React 19, polymorphic components.
- Advanced Analysis: Handles complex scenarios and identifies problems that other tools might miss.
Public packages
All-in-one plugins
@eslint-react/eslint-plugin
- The main ESLint plugin package including all rules and config presets in this repository.
Modular plugins
eslint-plugin-react-x
- Core rules (renderer-agnostic, compatible with x-platform).eslint-plugin-react-dom
- DOM specific rules for React DOM.eslint-plugin-react-web-api
- Rules for interacting with Web APIs.eslint-plugin-react-hooks-extra
- Extra React Hooks rules.eslint-plugin-react-naming-convention
- Naming convention rules.
Also available in
antfu/eslint-config
- Anthony’s ESLint config preset.eslint-config-rebeccastevens
- Rebecca’s ESLint config preset.eslint-config-sheriff
- A comprehensive and opinionated Typescript-first ESLint configuration.eslint-config-sukka
- Sukka’s ESLint config preset.
FAQ
License
This project is licensed under the MIT License - see the LICENSE file for details.