Add React-specific linting to a project to automatically flag missing key props, unused components, and incorrect prop types.
Run in CI to block merges that introduce common React anti-patterns or rule violations.
Configure the plugin to recognize custom form or link wrapper components so rules apply to your project conventions.
Use the recommended config for a curated ruleset, or the all config to enable every available rule.
This repository is a plugin for ESLint that adds React-specific code quality rules. ESLint is a tool that automatically scans JavaScript code for problems and style violations before you run it. This plugin extends ESLint to understand React patterns, which plain ESLint does not cover on its own. When you add this plugin to a project, it can warn or error on things like using a React component variable without rendering it, missing key props when rendering lists, incorrect prop types, and many other patterns that are common sources of bugs in React applications. It ships with a recommended configuration that enables a curated set of rules considered good practice, and an all configuration that turns on every rule in the plugin. Setup involves installing the package via npm and then referencing it in your ESLint config file. The README covers both the legacy config format (a .eslintrc file) and the newer flat config format (an eslint.config.js file) introduced in ESLint version 8. You tell the plugin which version of React you are using, either by specifying it directly or by letting the plugin detect it from your installed packages. Once configured, ESLint can be run from the command line or from inside a code editor that has an ESLint integration, and it will surface React-specific issues alongside standard JavaScript checks. The plugin also supports configuration for common React patterns your codebase might use, such as custom form components that wrap the native form element, or custom link components that wrap anchor tags. This helps the rules understand your project's conventions instead of only recognizing built-in HTML elements. This is a development tool: it belongs in devDependencies and runs during development and in CI pipelines, not in production. It is one of the most widely used ESLint plugins in the React ecosystem. The full README is longer than what was shown.
← jsx-eslint on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.