🚀 Launch Week Day 5:Introducing Immutable Scans.Learn More
Socket
Book a DemoInstallSign in
Socket

eslint-plugin-react-debug

Package Overview
Dependencies
Maintainers
1
Versions
2020
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-react-debug

ESLint React's ESLint plugin for debugging related rules.

Source
npmnpm
Version
2.7.4-beta.10
Version published
Weekly downloads
407K
5.61%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-plugin-react-debug

Debugging rules.

These rules are useful for static analysis, code transformation, or when building custom tooling that needs to identify specific patterns.

Install

# npm
npm install --save-dev eslint-plugin-react-debug

Setup

// 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 React patterns for code metrics, transformations, or custom tooling. These are not included in the unified plugin by default.

  • class-component - Reports all class components
  • function-component - Reports all function components
  • hook - Reports all React hooks
  • is-from-react - Reports identifiers initialized from React
  • is-from-ref - Reports identifiers initialized or derived from refs
  • jsx - Reports all JSX elements and fragments

Rules

https://eslint-react.xyz/docs/rules/overview#debug-rules

Keywords

react

FAQs

Package last updated on 25 Jan 2026

Did you know?

Socket

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.

Install

Related posts