
Company News
Socket Joins the OpenJS Foundation
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.
eslint-plugin-react-debug
Advanced tools
Debugging rules.
These rules are useful for static analysis, code transformation, or when building custom tooling that needs to identify specific patterns.
# npm
npm install --save-dev eslint-plugin-react-debug
// eslint.config.js
// @ts-check
import js from "@eslint/js";
import reactDebug from "eslint-plugin-react-debug";
import { defineConfig } from "eslint/config";
import tseslint from "typescript-eslint";
export default defineConfig(
{
files: ["**/*.{ts,tsx}"],
extends: [
js.configs.recommended,
tseslint.configs.recommended,
reactDebug.configs.all,
],
rules: {
// Put rules you want to override here
"react-debug/function-component": "warn",
},
},
);
[!WARNING] Debug rules report
Reactpatterns for code metrics, transformations, or custom tooling. These are not included in the unified plugin by default.
class-component - Reports all class componentsfunction-component - Reports all function componentshook - Reports all React hooksis-from-react - Reports identifiers initialized from Reactis-from-ref - Reports identifiers initialized or derived from refsjsx - Reports all JSX elements and fragmentsFAQs
ESLint React's ESLint plugin for debugging related rules.
The npm package eslint-plugin-react-debug receives a total of 224,862 weekly downloads. As such, eslint-plugin-react-debug popularity was classified as popular.
We found that eslint-plugin-react-debug demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.

Security News
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.